sudo-soldier commited on
Commit
b9ca255
·
verified ·
1 Parent(s): ba70e1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -91,10 +91,9 @@ def gradio_app():
91
 
92
  # Display the available ROM files
93
  with gr.Column():
94
- # Adjusting layout and making the dropdown scrollable using Container
95
- rom_buttons = gr.Dropdown(choices=rom_files, label="Select a ROM to Play", interactive=True)
96
- rom_buttons.style(container=True) # This will make the dropdown scrollable
97
-
98
  output_html = gr.HTML(value="Please select a ROM to play.")
99
 
100
  # When a ROM is selected from the dropdown, update the HTML display with the ROM content
@@ -119,3 +118,4 @@ gradio_app()
119
 
120
 
121
 
 
 
91
 
92
  # Display the available ROM files
93
  with gr.Column():
94
+ # Set max_height to make the dropdown scrollable
95
+ rom_buttons = gr.Dropdown(choices=rom_files, label="Select a ROM to Play", interactive=True, max_height=400)
96
+
 
97
  output_html = gr.HTML(value="Please select a ROM to play.")
98
 
99
  # When a ROM is selected from the dropdown, update the HTML display with the ROM content
 
118
 
119
 
120
 
121
+