Spaces:
Paused
Paused
Wenye He
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,8 +119,12 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 119 |
|
| 120 |
# Add document upload section
|
| 121 |
with gr.Row():
|
| 122 |
-
file_output = gr.File(
|
| 123 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
with gr.Row():
|
| 125 |
model_choice = gr.Dropdown(
|
| 126 |
choices=["phi-3", "llama3-8b"],
|
|
|
|
| 119 |
|
| 120 |
# Add document upload section
|
| 121 |
with gr.Row():
|
| 122 |
+
file_output = gr.File(
|
| 123 |
+
label="Upload Documents",
|
| 124 |
+
file_count="multiple",
|
| 125 |
+
file_types=[".pdf", ".txt"],
|
| 126 |
+
type="filepath" # Explicitly specify type from [5]
|
| 127 |
+
)
|
| 128 |
with gr.Row():
|
| 129 |
model_choice = gr.Dropdown(
|
| 130 |
choices=["phi-3", "llama3-8b"],
|