paascorb commited on
Commit
ee09d2c
1 Parent(s): dd797b5

Arreglando consitas

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ with gr.Blocks() as demo:
75
  buildb = gr.Textbox("⚠️Esperando documentos...",
76
  label="Status", interactive=False, show_label=True)
77
  dataset.change(validate_dataset, inputs=[
78
- dataset, openai_api_key], outputs=[buildb])
79
  uploaded_files.change(request_pathname, inputs=[
80
  uploaded_files], outputs=[dataset])
81
  query = gr.Textbox(
@@ -88,7 +88,7 @@ with gr.Blocks() as demo:
88
  "### Contexto\n\nEl siguiente contexto ha sido utilizado para generar la respuesta:")
89
  context = gr.Markdown(label="Contexto")
90
  ask.click(fn=do_ask, inputs=[query, buildb,
91
- openai_api_key, dataset], outputs=[answer, context])
92
 
93
  demo.queue(concurrency_count=20)
94
  demo.launch(show_error=True)
 
75
  buildb = gr.Textbox("⚠️Esperando documentos...",
76
  label="Status", interactive=False, show_label=True)
77
  dataset.change(validate_dataset, inputs=[
78
+ dataset], outputs=[buildb])
79
  uploaded_files.change(request_pathname, inputs=[
80
  uploaded_files], outputs=[dataset])
81
  query = gr.Textbox(
 
88
  "### Contexto\n\nEl siguiente contexto ha sido utilizado para generar la respuesta:")
89
  context = gr.Markdown(label="Contexto")
90
  ask.click(fn=do_ask, inputs=[query, buildb,
91
+ dataset], outputs=[answer, context])
92
 
93
  demo.queue(concurrency_count=20)
94
  demo.launch(show_error=True)