Nexchan commited on
Commit
70b6871
·
verified ·
1 Parent(s): 760c2b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(share=True)
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()