Spaces:
Running on Zero
Running on Zero
Fix Gradio 5 launch compatibility
Browse files
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(
|
|
|
|
| 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)
|