Arcypojeb commited on
Commit
788086c
·
1 Parent(s): 7defed5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def sendErrorMessage(ws, errorMessage):
62
  async def askQuestion(question):
63
  try:
64
  response = requests.post(
65
- "https://flowiseai-flowise.hf.space/api/v1/prediction/d5d12cce-9663-49d1-b7ad-1f7fff352b8a",
66
  headers={"Content-Type": "application/json"},
67
  json={"question": question},
68
  )
@@ -185,6 +185,8 @@ with gr.Blocks() as demo:
185
  startWebsockets.click(start_websockets, inputs=websocketPort, outputs=port)
186
  gui.click(start_client, inputs=None, outputs=server_msg)
187
  Bot1.click(askQuestion, inputs=client_msg, outputs=server_msg)
 
 
188
 
189
  with gr.TabItem("FalconChat", elem_id="falconchat", id=1):
190
  gr.load("HuggingFaceH4/starchat-playground", src="spaces")
 
62
  async def askQuestion(question):
63
  try:
64
  response = requests.post(
65
+ "https://flowiseai-flowise.hf.space/api/v1/prediction/0da97a1a-963b-4f6b-bcad-928c0630e5c1",
66
  headers={"Content-Type": "application/json"},
67
  json={"question": question},
68
  )
 
185
  startWebsockets.click(start_websockets, inputs=websocketPort, outputs=port)
186
  gui.click(start_client, inputs=None, outputs=server_msg)
187
  Bot1.click(askQuestion, inputs=client_msg, outputs=server_msg)
188
+
189
+ server_msg.change(askQuestion2, inputs=server_msg, outputs=client_msg)
190
 
191
  with gr.TabItem("FalconChat", elem_id="falconchat", id=1):
192
  gr.load("HuggingFaceH4/starchat-playground", src="spaces")