Spaces:
Sleeping
Sleeping
PalDPathak404 commited on
Commit ·
a9a1911
1
Parent(s): 6899612
Fix Gradio 6.0 theme parameter compatibility
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def run_simulation(manual_seed=None):
|
|
| 23 |
except Exception as e:
|
| 24 |
return f"Error running simulation: {str(e)}", None
|
| 25 |
|
| 26 |
-
with gr.Blocks(
|
| 27 |
gr.Markdown("# 🚦 Smart Traffic Optimization Environment (OpenEnv)")
|
| 28 |
gr.Markdown("Welcome to the Traffic Simulator. Watch how our AI improves traffic flow in real time.")
|
| 29 |
|
|
@@ -65,4 +65,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as interface:
|
|
| 65 |
run_btn.click(fn=run_simulation, inputs=[seed_input], outputs=[output_text, output_img])
|
| 66 |
|
| 67 |
if __name__ == "__main__":
|
| 68 |
-
interface.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 23 |
except Exception as e:
|
| 24 |
return f"Error running simulation: {str(e)}", None
|
| 25 |
|
| 26 |
+
with gr.Blocks() as interface:
|
| 27 |
gr.Markdown("# 🚦 Smart Traffic Optimization Environment (OpenEnv)")
|
| 28 |
gr.Markdown("Welcome to the Traffic Simulator. Watch how our AI improves traffic flow in real time.")
|
| 29 |
|
|
|
|
| 65 |
run_btn.click(fn=run_simulation, inputs=[seed_input], outputs=[output_text, output_img])
|
| 66 |
|
| 67 |
if __name__ == "__main__":
|
| 68 |
+
interface.launch(server_name="0.0.0.0", server_port=7860, theme=gr.themes.Soft())
|