Wenye He commited on
Commit
94e1454
·
verified ·
1 Parent(s): eff8c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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(label="Upload Documents", file_count="multiple",
123
- file_types=[".pdf", ".txt"], max_size=10)
 
 
 
 
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"],