Spaces:
Paused
Paused
Daniel Marques
commited on
Commit
·
9349ed2
1
Parent(s):
ba93db8
fix: add tokenWs
Browse files
main.py
CHANGED
@@ -78,7 +78,7 @@ You should only answer the topics that appear in these documents.
|
|
78 |
Always answer in the most helpful and reliable way possible, if you don't know the answer to a question, just say you don't know, don't try to make up an answer,
|
79 |
don't share false information. you should use no more than 15 sentences and all your answers should be as concise as possible.
|
80 |
Always say "Thank you for asking!" at the end of your answer.
|
81 |
-
Context: {
|
82 |
Question: {question}
|
83 |
"""
|
84 |
|
@@ -249,6 +249,6 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
249 |
while True:
|
250 |
data = await websocket.receive_text()
|
251 |
|
252 |
-
QA(data)
|
253 |
|
254 |
await websocket.send_text(f"Message text was: {tokenWS}")
|
|
|
78 |
Always answer in the most helpful and reliable way possible, if you don't know the answer to a question, just say you don't know, don't try to make up an answer,
|
79 |
don't share false information. you should use no more than 15 sentences and all your answers should be as concise as possible.
|
80 |
Always say "Thank you for asking!" at the end of your answer.
|
81 |
+
Context: {context}
|
82 |
Question: {question}
|
83 |
"""
|
84 |
|
|
|
249 |
while True:
|
250 |
data = await websocket.receive_text()
|
251 |
|
252 |
+
res = QA(data)
|
253 |
|
254 |
await websocket.send_text(f"Message text was: {tokenWS}")
|