rodolphethinks1 commited on
Commit
773783d
·
verified ·
1 Parent(s): d019187

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- height=None # Display all rows without vertical scrolling
 
 
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