Update app.py
Browse files
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.
|
30 |
-
gr.
|
31 |
],
|
32 |
-
outputs=gr.
|
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()
|