Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -298,9 +298,8 @@ with gr.Blocks() as demo:
|
|
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 |
-
|
303 |
-
gr.Interface(examples = [["¿Cuándo suelen comenzar las adicciones?","Entrevista Miguel Ruiz.txt"]])
|
304 |
|
305 |
demo.queue(concurrency_count=20)
|
306 |
demo.launch(show_error=True)
|
|
|
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 |
|
304 |
demo.queue(concurrency_count=20)
|
305 |
demo.launch(show_error=True)
|