Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -591,9 +591,13 @@ with gr.Blocks(css=css) as demo:
|
|
591 |
inputs=[mode_toggle],
|
592 |
outputs=[workbook_upload, upload_box, image_url_input]
|
593 |
)
|
|
|
|
|
|
|
|
|
594 |
|
595 |
workbook_upload.change(
|
596 |
-
fn=
|
597 |
inputs=[workbook_upload],
|
598 |
outputs=[image_data_state, status]
|
599 |
)
|
|
|
591 |
inputs=[mode_toggle],
|
592 |
outputs=[workbook_upload, upload_box, image_url_input]
|
593 |
)
|
594 |
+
def debug_read_uploaded(file):
|
595 |
+
data, msg = read_uploaded_workbook(file)
|
596 |
+
print("Fetched data from Excel:", data[:3]) # Just print a few
|
597 |
+
return data, msg
|
598 |
|
599 |
workbook_upload.change(
|
600 |
+
fn=debug_read_uploaded,
|
601 |
inputs=[workbook_upload],
|
602 |
outputs=[image_data_state, status]
|
603 |
)
|