Spaces:
Runtime error
Runtime error
Commit
·
1b68aaf
1
Parent(s):
b5fb503
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,17 +45,6 @@ chat_interface = gr.ChatInterface(
|
|
| 45 |
)
|
| 46 |
|
| 47 |
|
| 48 |
-
upload_interface = gr.Interface(
|
| 49 |
-
fn=load_file,
|
| 50 |
-
inputs=[
|
| 51 |
-
gr.File(label="Upload a PDF",file_types=["pdf"]),
|
| 52 |
-
],
|
| 53 |
-
outputs="text",
|
| 54 |
-
title="PDF Question Answering",
|
| 55 |
-
description="Upload a PDF, enter a question, and get an answer from the model.",
|
| 56 |
-
theme=gr.themes.Soft()
|
| 57 |
-
)
|
| 58 |
-
|
| 59 |
|
| 60 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 61 |
with gr.Row():
|
|
|
|
| 45 |
)
|
| 46 |
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 50 |
with gr.Row():
|