DHEIVER commited on
Commit
9247698
·
verified ·
1 Parent(s): 73712c9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -26,13 +26,13 @@ def answer_question(pdf_file, question):
26
  iface = gr.Interface(
27
  fn=answer_question,
28
  inputs=[
29
- gr.inputs.File(label="Carregar PDF"),
30
- gr.inputs.Textbox(label="Pergunta")
31
  ],
32
- outputs=gr.outputs.Textbox(label="Resposta"),
33
  title="QA sobre PDF",
34
  description="Carregue um PDF e faça perguntas sobre o conteúdo."
35
  )
36
 
37
  # Iniciar a interface
38
- iface.launch()
 
26
  iface = gr.Interface(
27
  fn=answer_question,
28
  inputs=[
29
+ gr.File(label="Carregar PDF"),
30
+ gr.Textbox(label="Pergunta")
31
  ],
32
+ outputs=gr.Textbox(label="Resposta"),
33
  title="QA sobre PDF",
34
  description="Carregue um PDF e faça perguntas sobre o conteúdo."
35
  )
36
 
37
  # Iniciar a interface
38
+ iface.launch()