sudo-soldier commited on
Commit
3cd343a
·
verified ·
1 Parent(s): c3f0e83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -91,16 +91,13 @@ def gradio_app():
91
 
92
  # Display the available ROM files
93
  with gr.Column():
94
- rom_buttons = gr.Dropdown(choices=rom_files, label="Select a ROM to Play", interactive=True)
95
 
96
  output_html = gr.HTML(value="Please select a ROM to play.")
97
 
98
  # When a ROM is selected from the dropdown, update the HTML display with the ROM content
99
  rom_buttons.change(fn=generate_rom_page, inputs=rom_buttons, outputs=output_html)
100
 
101
- # Style for scrollable ROM list
102
- rom_buttons.style(width="100%", height="300px", overflow="auto")
103
-
104
  # Applying container style (for the video section)
105
  output_html.style(width="100%", height=500)
106
 
@@ -118,3 +115,4 @@ gradio_app()
118
 
119
 
120
 
 
 
91
 
92
  # Display the available ROM files
93
  with gr.Column():
94
+ rom_buttons = gr.Dropdown(choices=rom_files, label="Select a ROM to Play", interactive=True, scrollable=True)
95
 
96
  output_html = gr.HTML(value="Please select a ROM to play.")
97
 
98
  # When a ROM is selected from the dropdown, update the HTML display with the ROM content
99
  rom_buttons.change(fn=generate_rom_page, inputs=rom_buttons, outputs=output_html)
100
 
 
 
 
101
  # Applying container style (for the video section)
102
  output_html.style(width="100%", height=500)
103
 
 
115
 
116
 
117
 
118
+