paascorb commited on
Commit
4ff9880
1 Parent(s): 8d930c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -297,9 +297,8 @@ with gr.Blocks() as demo:
297
  context = gr.Markdown(label="Contexto")
298
  # ask.click(fn=do_ask, inputs=[query, buildb,
299
  # dataset], outputs=[answer, context])
300
- ask.click(fn=predict, inputs=[query,
301
- file], outputs=[answer, context, prob],
302
- examples = [["¿Cuándo suelen comenzar las adicciones?","Entrevista Miguel Ruiz.txt"]])
303
  examples = gr.Examples(examples=["¿Cuándo suelen comenzar las adicciones?","Entrevista Miguel Ruiz.txt"])
304
 
305
  demo.queue(concurrency_count=20)
 
297
  context = gr.Markdown(label="Contexto")
298
  # ask.click(fn=do_ask, inputs=[query, buildb,
299
  # dataset], outputs=[answer, context])
300
+ ask.click(fn=predict, inputs=[query, file],
301
+ outputs=[answer, context, prob])
 
302
  examples = gr.Examples(examples=["¿Cuándo suelen comenzar las adicciones?","Entrevista Miguel Ruiz.txt"])
303
 
304
  demo.queue(concurrency_count=20)