FlameF0X commited on
Commit
63a4e69
·
verified ·
1 Parent(s): 41a4bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -89,9 +89,9 @@ custom_css = """
89
  }
90
  """
91
 
92
- # We remove 'css' and 'head' arguments from Blocks() and inject via gr.HTML instead
93
- # to ensure compatibility across different Gradio versions.
94
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
95
  gr.HTML(f"<style>{custom_css}</style>")
96
 
97
  # Header
@@ -207,4 +207,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
207
  # -------------------- RUN --------------------
208
  if __name__ == "__main__":
209
  # queue() is generally required for streaming to work correctly
210
- demo.queue().launch(share=False)
 
89
  }
90
  """
91
 
92
+ # We remove 'css', 'head', and 'theme' arguments from Blocks() and inject css via gr.HTML instead
93
+ # to ensure compatibility across older Gradio versions.
94
+ with gr.Blocks() as demo:
95
  gr.HTML(f"<style>{custom_css}</style>")
96
 
97
  # Header
 
207
  # -------------------- RUN --------------------
208
  if __name__ == "__main__":
209
  # queue() is generally required for streaming to work correctly
210
+ demo.queue().launch(share=False)