Spaces:
Sleeping
Sleeping
Lautaro Cardarelli
commited on
Commit
·
b9ce672
1
Parent(s):
dc63bd9
add questions output
Browse files
app.py
CHANGED
|
@@ -96,10 +96,13 @@ def generate_summary(text):
|
|
| 96 |
|
| 97 |
|
| 98 |
def process(text):
|
| 99 |
-
|
| 100 |
-
return generate_summary(text)
|
| 101 |
|
| 102 |
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
|
| 98 |
def process(text):
|
| 99 |
+
return generate_summary(text), generate_questions(text)
|
|
|
|
| 100 |
|
| 101 |
|
| 102 |
+
textbox_input = gr.Textbox(label="Pega el text aca:", placeholder="Texto...", lines=15)
|
| 103 |
+
summary_output = gr.Textbox(label="Resumen", lines=15)
|
| 104 |
+
questions_output = gr.Textbox(label="Preguntas", lines=5)
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
demo = gr.Interface(fn=process, inputs=textbox_input, outputs=[summary_output, questions_output])
|
| 108 |
+
demo.launch()
|