Spaces:
Running on Zero
Running on Zero
Fix upload preview outputs
Browse files
app.py
CHANGED
|
@@ -3205,7 +3205,7 @@ with gr.Blocks(title="Blood Test Explainer") as demo:
|
|
| 3205 |
with gr.Row(equal_height=False, elem_classes=["bte-hero-grid"]):
|
| 3206 |
with gr.Column(scale=4, min_width=320, elem_classes=["bte-workflow-panel", "bte-panel-upload"]):
|
| 3207 |
with gr.Group(elem_classes=["bte-shell", "bte-upload-card"]):
|
| 3208 |
-
gr.HTML(
|
| 3209 |
'<p class="bte-upload-hint">Supported formats: PDF</p>',
|
| 3210 |
elem_classes=["bte-upload-hint-wrap"],
|
| 3211 |
)
|
|
@@ -3238,7 +3238,7 @@ with gr.Blocks(title="Blood Test Explainer") as demo:
|
|
| 3238 |
uploaded.change(
|
| 3239 |
upload_state,
|
| 3240 |
inputs=[uploaded],
|
| 3241 |
-
outputs=[upload_dropzone, selected_document, workflow_phase],
|
| 3242 |
show_progress="hidden",
|
| 3243 |
).then(
|
| 3244 |
show_processing,
|
|
|
|
| 3205 |
with gr.Row(equal_height=False, elem_classes=["bte-hero-grid"]):
|
| 3206 |
with gr.Column(scale=4, min_width=320, elem_classes=["bte-workflow-panel", "bte-panel-upload"]):
|
| 3207 |
with gr.Group(elem_classes=["bte-shell", "bte-upload-card"]):
|
| 3208 |
+
upload_hint = gr.HTML(
|
| 3209 |
'<p class="bte-upload-hint">Supported formats: PDF</p>',
|
| 3210 |
elem_classes=["bte-upload-hint-wrap"],
|
| 3211 |
)
|
|
|
|
| 3238 |
uploaded.change(
|
| 3239 |
upload_state,
|
| 3240 |
inputs=[uploaded],
|
| 3241 |
+
outputs=[upload_dropzone, upload_hint, selected_document, workflow_phase],
|
| 3242 |
show_progress="hidden",
|
| 3243 |
).then(
|
| 3244 |
show_processing,
|