sudo-soldier commited on
Commit
c3b21a5
·
verified ·
1 Parent(s): 0d53631

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -98,7 +98,9 @@ def gradio_app():
98
  # Display the ROM page inside a container with custom styling
99
  with gr.Column():
100
  output_html = gr.HTML(value="Please select a ROM to play.")
101
- output_html.style(width="100%", height=500) # Apply style using the 'style' method correctly
 
 
102
 
103
  app.launch(server_name="0.0.0.0", server_port=7860, share=True)
104
 
@@ -112,3 +114,4 @@ gradio_app()
112
 
113
 
114
 
 
 
98
  # Display the ROM page inside a container with custom styling
99
  with gr.Column():
100
  output_html = gr.HTML(value="Please select a ROM to play.")
101
+
102
+ # Apply the style using inline HTML
103
+ output_html.value = '<div style="width: 100%; height: 500px; overflow: hidden;">' + output_html.value + '</div>'
104
 
105
  app.launch(server_name="0.0.0.0", server_port=7860, share=True)
106
 
 
114
 
115
 
116
 
117
+