Fsezai33 commited on
Commit
700ea0b
·
verified ·
1 Parent(s): 358285a

Fix Gradio 5 launch compatibility

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -136,7 +136,7 @@ CSS = """
136
  """
137
 
138
 
139
- with gr.Blocks(title="Dynamic LLM ZeroGPU Playground") as demo:
140
  gr.Markdown(
141
  """
142
  # Dynamic LLM ZeroGPU Playground
@@ -186,7 +186,7 @@ with gr.Blocks(title="Dynamic LLM ZeroGPU Playground") as demo:
186
  )
187
  top_p = gr.Slider(label="Top-p", minimum=0.05, maximum=1, value=0.95, step=0.05)
188
 
189
- chatbot = gr.Chatbot(type="messages", height=520)
190
  gr.ChatInterface(
191
  fn=chat_with_model,
192
  chatbot=chatbot,
@@ -231,4 +231,4 @@ with gr.Blocks(title="Dynamic LLM ZeroGPU Playground") as demo:
231
 
232
  if __name__ == "__main__":
233
  demo.queue(default_concurrency_limit=1)
234
- demo.launch(css=CSS, mcp_server=True)
 
136
  """
137
 
138
 
139
+ with gr.Blocks(title="Dynamic LLM ZeroGPU Playground", css=CSS) as demo:
140
  gr.Markdown(
141
  """
142
  # Dynamic LLM ZeroGPU Playground
 
186
  )
187
  top_p = gr.Slider(label="Top-p", minimum=0.05, maximum=1, value=0.95, step=0.05)
188
 
189
+ chatbot = gr.Chatbot(type="messages", height=520, allow_tags=False)
190
  gr.ChatInterface(
191
  fn=chat_with_model,
192
  chatbot=chatbot,
 
231
 
232
  if __name__ == "__main__":
233
  demo.queue(default_concurrency_limit=1)
234
+ demo.launch(mcp_server=True)