Update app.py
Browse files
app.py
CHANGED
@@ -377,6 +377,10 @@ def create_ui(agent):
|
|
377 |
color: #d32f2f;
|
378 |
font-weight: bold;
|
379 |
}
|
|
|
|
|
|
|
|
|
380 |
"""
|
381 |
) as demo:
|
382 |
# Header Section
|
@@ -392,7 +396,7 @@ def create_ui(agent):
|
|
392 |
with gr.Row(equal_height=False):
|
393 |
# Left Column - Inputs
|
394 |
with gr.Column(scale=1, min_width=400):
|
395 |
-
with gr.Group(
|
396 |
file_upload = gr.File(
|
397 |
file_types=[".pdf", ".csv", ".xls", ".xlsx"],
|
398 |
file_count="multiple",
|
@@ -440,12 +444,12 @@ def create_ui(agent):
|
|
440 |
)
|
441 |
|
442 |
with gr.TabItem("Raw Data Preview", id="preview"):
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
|
450 |
with gr.Row():
|
451 |
download_output = gr.File(
|
|
|
377 |
color: #d32f2f;
|
378 |
font-weight: bold;
|
379 |
}
|
380 |
+
.dataframe-container {
|
381 |
+
height: 600px;
|
382 |
+
overflow-y: auto;
|
383 |
+
}
|
384 |
"""
|
385 |
) as demo:
|
386 |
# Header Section
|
|
|
396 |
with gr.Row(equal_height=False):
|
397 |
# Left Column - Inputs
|
398 |
with gr.Column(scale=1, min_width=400):
|
399 |
+
with gr.Group(elem_classes="file-upload"):
|
400 |
file_upload = gr.File(
|
401 |
file_types=[".pdf", ".csv", ".xls", ".xlsx"],
|
402 |
file_count="multiple",
|
|
|
444 |
)
|
445 |
|
446 |
with gr.TabItem("Raw Data Preview", id="preview"):
|
447 |
+
with gr.Column(elem_classes="dataframe-container"):
|
448 |
+
data_preview = gr.Dataframe(
|
449 |
+
headers=["Page", "Content"],
|
450 |
+
datatype=["str", "str"],
|
451 |
+
interactive=False
|
452 |
+
)
|
453 |
|
454 |
with gr.Row():
|
455 |
download_output = gr.File(
|