Spaces:
Runtime error
Runtime error
Commit ·
d5d5fbc
1
Parent(s): da6a822
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,14 +71,14 @@ def get_Answer(query):
|
|
| 71 |
# iface.launch()
|
| 72 |
|
| 73 |
|
| 74 |
-
#
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
|
| 83 |
-
#
|
| 84 |
-
|
|
|
|
| 71 |
# iface.launch()
|
| 72 |
|
| 73 |
|
| 74 |
+
# Define the Gradio interface
|
| 75 |
+
iface = gr.Interface(
|
| 76 |
+
fn=upload_pdf,
|
| 77 |
+
inputs=["file"], # Specify a file input component
|
| 78 |
+
outputs="textbox", # Display the output text in a textbox
|
| 79 |
+
title="Upload PDF to ChromaDB",
|
| 80 |
+
description="Upload a PDF file and store its text chunks in ChromaDB.",
|
| 81 |
+
)
|
| 82 |
|
| 83 |
+
# Launch the Gradio app
|
| 84 |
+
iface.launch()
|