sudo-soldier commited on
Commit
b1712e3
·
verified ·
1 Parent(s): 8bb4b3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -65,7 +65,6 @@ def generate_rom_page(rom_name):
65
  <div style='width:640px;height:480px;max-width:100%'>
66
  <div id='game'></div>
67
  </div>
68
-
69
  <script>
70
  EJS_player = "#game";
71
  EJS_core = "nes";
@@ -99,8 +98,9 @@ def gradio_app():
99
  # When a ROM is selected from the dropdown, update the HTML display with the ROM content
100
  rom_buttons.change(fn=generate_rom_page, inputs=rom_buttons, outputs=output_html)
101
 
102
- # Applying container style (for the video section)
103
- output_html.style(width="100%", height=500)
 
104
 
105
  app.launch(server_name="0.0.0.0", server_port=7860, share=True)
106
 
@@ -121,3 +121,4 @@ gradio_app()
121
 
122
 
123
 
 
 
65
  <div style='width:640px;height:480px;max-width:100%'>
66
  <div id='game'></div>
67
  </div>
 
68
  <script>
69
  EJS_player = "#game";
70
  EJS_core = "nes";
 
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
+ # Wrapping the HTML output in a gr.Row to set width/height properties
102
+ with gr.Row():
103
+ output_html.style(width="100%") # This will apply to the output inside this row
104
 
105
  app.launch(server_name="0.0.0.0", server_port=7860, share=True)
106
 
 
121
 
122
 
123
 
124
+