Skip to content

Instantly share code, notes, and snippets.

@awg01
Last active April 22, 2022 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awg01/bfe3771e3368371c306fa6fbe1243ee9 to your computer and use it in GitHub Desktop.
Save awg01/bfe3771e3368371c306fa6fbe1243ee9 to your computer and use it in GitHub Desktop.
I want to render two forms on single html page

Objective

I want to render two forms on single html page.

Expectation

  1. form1 has two inputs(paragraph to summarize and length of summary) and after clicking on generate summary button from left side of page it will return summary for left side paragraph

  2. form2 has two inputs(paragraph to summarize and length of summary) and after clicking on generate summary button from right side of page it will return summary for right side paragraph

What is happening right now

after clicking on left side summary generate button it is giving output but when I click on right side generate summary button it is clearing output generated on left side form.

images of error are given in the following links first time clicking on left side generate summary button https://imgur.com/DnAhI2M) after clicking on right side generate summary button https://imgur.com/yvHd63f)

codes https://gist.github.com/awg01/33a1443338a11effc3218fc1b5577c6b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment