Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -231,9 +231,17 @@ def process_and_generate_reports(uploaded_files, llm_model):
|
|
231 |
processing_message = f"Processing complete. {len(uploaded_files)} reports generated. Please download your reports below."
|
232 |
return processing_message, generated_reports
|
233 |
|
234 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
with gr.Row():
|
236 |
file_upload = gr.File(label="Choose papers", file_types=['.pdf'], file_count="multiple")
|
|
|
|
|
237 |
model_choice = gr.Dropdown(["Model 1", "Model 2"], label="Choose a model", value="Model 1")
|
238 |
submit_button = gr.Button("Evaluate")
|
239 |
|
|
|
231 |
processing_message = f"Processing complete. {len(uploaded_files)} reports generated. Please download your reports below."
|
232 |
return processing_message, generated_reports
|
233 |
|
234 |
+
with gr.Blocks(theme=gr.themes.Glass(
|
235 |
+
text_size="sm",
|
236 |
+
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"],
|
237 |
+
primary_hue="neutral",
|
238 |
+
secondary_hue="gray")) as demo:
|
239 |
+
|
240 |
+
gr.Markdown("## Med Library")
|
241 |
with gr.Row():
|
242 |
file_upload = gr.File(label="Choose papers", file_types=['.pdf'], file_count="multiple")
|
243 |
+
|
244 |
+
with gr.Row():
|
245 |
model_choice = gr.Dropdown(["Model 1", "Model 2"], label="Choose a model", value="Model 1")
|
246 |
submit_button = gr.Button("Evaluate")
|
247 |
|