Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,12 +78,14 @@ with gr.Blocks() as interface:
|
|
| 78 |
)
|
| 79 |
parse_button = gr.Button("Parse Content")
|
| 80 |
|
| 81 |
-
# Dataframe display
|
| 82 |
parsed_dataframe = gr.Dataframe(
|
| 83 |
value=initial_df,
|
| 84 |
label="Parsed Data",
|
| 85 |
interactive=False,
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
)
|
| 88 |
|
| 89 |
# Hidden state to store the dataframe
|
|
|
|
| 78 |
)
|
| 79 |
parse_button = gr.Button("Parse Content")
|
| 80 |
|
| 81 |
+
# Dataframe display with horizontal scrolling allowed and vertical scrolling disabled
|
| 82 |
parsed_dataframe = gr.Dataframe(
|
| 83 |
value=initial_df,
|
| 84 |
label="Parsed Data",
|
| 85 |
interactive=False,
|
| 86 |
+
show_label=False, # Remove label if you don't want it to show
|
| 87 |
+
max_rows=10, # You can adjust the max number of rows to display
|
| 88 |
+
wrap=True # Allow word wrap in the dataframe
|
| 89 |
)
|
| 90 |
|
| 91 |
# Hidden state to store the dataframe
|