Spaces:
Runtime error
Runtime error
Commit
·
feab799
1
Parent(s):
bd18ceb
Update app.py
Browse files
app.py
CHANGED
|
@@ -130,14 +130,14 @@ def save_data_and_sendmail(article,generated_questions,num_que):
|
|
| 130 |
|
| 131 |
## design 1
|
| 132 |
inputs=gr.Textbox(value=article_value, lines=5, label="Input Text/Article",elem_id="inp_div")
|
| 133 |
-
total_que = gr.Textbox(label="
|
| 134 |
outputs=gr.Textbox(label="Generated Questions",lines=6,elem_id="inp_div")
|
| 135 |
|
| 136 |
demo = gr.Interface(
|
| 137 |
generate_questions,
|
| 138 |
[inputs,total_que],
|
| 139 |
outputs,
|
| 140 |
-
title="
|
| 141 |
css=".gradio-container {background-color: lightgray} #inp_div {background-color: #7FB3D5;}",
|
| 142 |
article="""<p style='text-align: center;'><a href="https://github.com/bhaskatripathi/QuestAnsGenerator/issues" target="_blank">Raise Issues</a></p>
|
| 143 |
<p style='text-align: center;'>MultiCloud4U Sandbox Env <a href="https://www.multicloud4u.com" target="_blank">Multicloud4U Technologies Pvt. Ltd.</a></p>"""
|
|
|
|
| 130 |
|
| 131 |
## design 1
|
| 132 |
inputs=gr.Textbox(value=article_value, lines=5, label="Input Text/Article",elem_id="inp_div")
|
| 133 |
+
total_que = gr.Textbox(value=3, label="Enter the number of questions to generate",elem_id="inp_div")
|
| 134 |
outputs=gr.Textbox(label="Generated Questions",lines=6,elem_id="inp_div")
|
| 135 |
|
| 136 |
demo = gr.Interface(
|
| 137 |
generate_questions,
|
| 138 |
[inputs,total_que],
|
| 139 |
outputs,
|
| 140 |
+
title="Text2Question Generation with Text-to-Text-Transfer-Transformer",
|
| 141 |
css=".gradio-container {background-color: lightgray} #inp_div {background-color: #7FB3D5;}",
|
| 142 |
article="""<p style='text-align: center;'><a href="https://github.com/bhaskatripathi/QuestAnsGenerator/issues" target="_blank">Raise Issues</a></p>
|
| 143 |
<p style='text-align: center;'>MultiCloud4U Sandbox Env <a href="https://www.multicloud4u.com" target="_blank">Multicloud4U Technologies Pvt. Ltd.</a></p>"""
|