henrybit commited on
Commit
2bf62dd
·
verified ·
1 Parent(s): ab14c7d

Move Gradio theme and CSS to launch()

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -270,7 +270,7 @@ Typed answers with calibrated probabilities, in one forward pass. No generated t
270
  The router reads the script before the forward pass and sends non-English text to the multilingual checkpoint.
271
  """
272
 
273
- with gr.Blocks(title="Laya", theme=gr.themes.Soft(), css=CSS) as demo:
274
  with gr.Column(elem_id="col-container"):
275
  gr.Markdown(INTRO)
276
 
@@ -408,4 +408,4 @@ with gr.Blocks(title="Laya", theme=gr.themes.Soft(), css=CSS) as demo:
408
  )
409
 
410
  if __name__ == "__main__":
411
- demo.queue(max_size=20).launch(mcp_server=True)
 
270
  The router reads the script before the forward pass and sends non-English text to the multilingual checkpoint.
271
  """
272
 
273
+ with gr.Blocks(title="Laya") as demo:
274
  with gr.Column(elem_id="col-container"):
275
  gr.Markdown(INTRO)
276
 
 
408
  )
409
 
410
  if __name__ == "__main__":
411
+ demo.queue(max_size=20).launch(mcp_server=True, theme=gr.themes.Soft(), css=CSS)