Commit
·
a8acb4d
1
Parent(s):
6bbf0e7
Update app.py
Browse files
app.py
CHANGED
@@ -151,15 +151,15 @@ def save_data_and_sendmail(article,generated_questions,num_que):
|
|
151 |
return "Successfully save data"
|
152 |
|
153 |
## design 1
|
154 |
-
inputs=gr.Textbox(value=article_value, lines=5, label="Article
|
155 |
-
total_que = gr.Textbox(label="Number of
|
156 |
-
outputs=gr.Textbox(lines=
|
157 |
|
158 |
demo = gr.Interface(
|
159 |
generate_questions,
|
160 |
[inputs,total_que],
|
161 |
outputs,
|
162 |
-
title="Question Generation
|
163 |
css=".gradio-container {background-color: lightgray} #inp_div {background-color: #7FB3D5;}",
|
164 |
article="""Feel free to give us your [feedback](https://www.pragnakalp.com/contact/) and contact us at [[email protected]]("mailto:[email protected]")
|
165 |
if you want to have your own Questions-Generation using T5 model. We are just one click away. And don't forget to check out more interesting
|
|
|
151 |
return "Successfully save data"
|
152 |
|
153 |
## design 1
|
154 |
+
inputs=gr.Textbox(value=article_value, lines=5, label="Input Text/Article",elem_id="inp_div")
|
155 |
+
total_que = gr.Textbox(label="Number of questions to generate",elem_id="inp_div")
|
156 |
+
outputs=gr.Textbox(lines=7, label="Generated Questions",elem_id="inp_div")
|
157 |
|
158 |
demo = gr.Interface(
|
159 |
generate_questions,
|
160 |
[inputs,total_que],
|
161 |
outputs,
|
162 |
+
title="Question Generation Using T5-Base Model",
|
163 |
css=".gradio-container {background-color: lightgray} #inp_div {background-color: #7FB3D5;}",
|
164 |
article="""Feel free to give us your [feedback](https://www.pragnakalp.com/contact/) and contact us at [[email protected]]("mailto:[email protected]")
|
165 |
if you want to have your own Questions-Generation using T5 model. We are just one click away. And don't forget to check out more interesting
|