Lautaro Cardarelli commited on
Commit
b9ce672
1 Parent(s): dc63bd9

add questions output

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -96,10 +96,13 @@ def generate_summary(text):
96
 
97
 
98
  def process(text):
99
- print(generate_questions(text))
100
- return generate_summary(text)
101
 
102
 
103
- textbox = gr.Textbox(label="Pega el text aca:", placeholder="Texto...", lines=15)
104
- demo = gr.Interface(fn=process, inputs=textbox, outputs="text")
105
- demo.launch()
 
 
 
 
 
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()