vishanth11 commited on
Commit
0bb91ff
·
1 Parent(s): 8aa9dcb

Avoid deprecated Gradio theme setup

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -24,7 +24,7 @@ except Exception:
24
  from dashboard_api import app as fastapi_app
25
 
26
 
27
- with gr.Blocks(title="AI Traffic Adaptation System", theme=gr.themes.Soft(primary_hue="indigo")) as demo:
28
  gr.HTML(
29
  """
30
  <style>
@@ -48,4 +48,8 @@ app = demo.app
48
 
49
 
50
  if __name__ == "__main__":
51
- demo.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", "7860")))
 
 
 
 
 
24
  from dashboard_api import app as fastapi_app
25
 
26
 
27
+ with gr.Blocks(title="AI Traffic Adaptation System") as demo:
28
  gr.HTML(
29
  """
30
  <style>
 
48
 
49
 
50
  if __name__ == "__main__":
51
+ demo.launch(
52
+ server_name="0.0.0.0",
53
+ server_port=int(os.environ.get("PORT", "7860")),
54
+ theme=gr.themes.Soft(primary_hue="indigo"),
55
+ )