Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,10 +91,9 @@ def gradio_app():
|
|
| 91 |
|
| 92 |
# Display the available ROM files
|
| 93 |
with gr.Column():
|
| 94 |
-
#
|
| 95 |
-
rom_buttons = gr.Dropdown(choices=rom_files, label="Select a ROM to Play", interactive=True)
|
| 96 |
-
|
| 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 |
+
|