Spaces:
Running
Running
Update app.py
Browse files
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/
|
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")
|