Upload app.py
Browse files
app.py
CHANGED
|
@@ -245,13 +245,13 @@ Point **Paperclip** at `https://<your-space>.hf.space` with model `{MODEL_ALIAS}
|
|
| 245 |
| POST | `/v1/chat/completions` | Chat (streaming & non-streaming) |
|
| 246 |
| GET | `/health` | Health check |
|
| 247 |
|
| 248 |
-
|
| 249 |
""")
|
| 250 |
# This ChatInterface wires `gradio_chat` into Gradio's event system,
|
| 251 |
# which is what ZeroGPU's startup scanner requires.
|
| 252 |
gr.ChatInterface(fn=gradio_chat)
|
| 253 |
|
| 254 |
-
app = gr.mount_gradio_app(app, demo, path="/
|
| 255 |
|
| 256 |
# ---------------------------------------------------------------------------
|
| 257 |
# Entry-point
|
|
|
|
| 245 |
| POST | `/v1/chat/completions` | Chat (streaming & non-streaming) |
|
| 246 |
| GET | `/health` | Health check |
|
| 247 |
|
| 248 |
+
Chat UI is served at the root path below; API routes remain available alongside it.
|
| 249 |
""")
|
| 250 |
# This ChatInterface wires `gradio_chat` into Gradio's event system,
|
| 251 |
# which is what ZeroGPU's startup scanner requires.
|
| 252 |
gr.ChatInterface(fn=gradio_chat)
|
| 253 |
|
| 254 |
+
app = gr.mount_gradio_app(app, demo, path="/")
|
| 255 |
|
| 256 |
# ---------------------------------------------------------------------------
|
| 257 |
# Entry-point
|