Spaces:
Runtime error
Runtime error
Commit
·
7ef436d
1
Parent(s):
bcbee82
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def final_qa_pipeline(file, query):
|
|
| 82 |
return ("No match", 0)
|
| 83 |
|
| 84 |
iface = gr.Interface(
|
| 85 |
-
fn =
|
| 86 |
inputs = [gr.inputs.File(label="input pdf file"), gr.inputs.Textbox(label="Question:")],
|
| 87 |
outputs = [gr.outputs.HTML(label="Answer"), gr.outputs.HTML(label="Score")]
|
| 88 |
)
|
|
|
|
| 82 |
return ("No match", 0)
|
| 83 |
|
| 84 |
iface = gr.Interface(
|
| 85 |
+
fn = final_qa_pipeline,
|
| 86 |
inputs = [gr.inputs.File(label="input pdf file"), gr.inputs.Textbox(label="Question:")],
|
| 87 |
outputs = [gr.outputs.HTML(label="Answer"), gr.outputs.HTML(label="Score")]
|
| 88 |
)
|