Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ with gr.Blocks() as demo:
|
|
| 74 |
gr.Markdown("### Send a POST request to `/api/chat` with the following JSON body:")
|
| 75 |
gr.Markdown("```json\n[ { \"role\": \"user\", \"content\": \"Hello, how are you?\" }, { \"role\": \"assistant\", \"content\": \"I'm fine, thank you! How can I assist you today?\" }, { \"role\": \"user\", \"content\": \"Can you tell me a joke?\" } ]\n```")
|
| 76 |
gr.Markdown("### API Response:")
|
| 77 |
-
gr.Interface(fn=api_chat, inputs="json", outputs="json").launch(
|
| 78 |
|
| 79 |
if __name__ == "__main__":
|
| 80 |
demo.launch()
|
|
|
|
| 74 |
gr.Markdown("### Send a POST request to `/api/chat` with the following JSON body:")
|
| 75 |
gr.Markdown("```json\n[ { \"role\": \"user\", \"content\": \"Hello, how are you?\" }, { \"role\": \"assistant\", \"content\": \"I'm fine, thank you! How can I assist you today?\" }, { \"role\": \"user\", \"content\": \"Can you tell me a joke?\" } ]\n```")
|
| 76 |
gr.Markdown("### API Response:")
|
| 77 |
+
gr.Interface(fn=api_chat, inputs="json", outputs="json").launch()
|
| 78 |
|
| 79 |
if __name__ == "__main__":
|
| 80 |
demo.launch()
|