Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,11 +156,11 @@ with gr.Blocks(title="GenAI Customer Support") as demo:
|
|
| 156 |
upload_button.click(fn=upload_and_index_pdf, inputs=pdf_file, outputs=upload_result)
|
| 157 |
|
| 158 |
with gr.Tab("📝 Generate Sample Questions"):
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
|
| 165 |
# --------------------------
|
| 166 |
# Launch
|
|
|
|
| 156 |
upload_button.click(fn=upload_and_index_pdf, inputs=pdf_file, outputs=upload_result)
|
| 157 |
|
| 158 |
with gr.Tab("📝 Generate Sample Questions"):
|
| 159 |
+
pdf_file_for_qs = gr.File(label="Upload MultiWOZ PDF")
|
| 160 |
+
generated_questions = gr.Textbox(label="Generated Sample Questions", lines=10)
|
| 161 |
+
gen_qs_button = gr.Button("Generate Questions")
|
| 162 |
+
gen_qs_button.click(fn=generate_test_questions_from_pdf, inputs=pdf_file_for_qs, outputs=generated_questions)
|
| 163 |
+
|
| 164 |
|
| 165 |
# --------------------------
|
| 166 |
# Launch
|