Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,9 @@ chat_id = {'conversation_id': None, 'parent_id': None}
|
|
26 |
headers = {'Authorization': 'yusin'}
|
27 |
|
28 |
async def chat_gpt_ask(prompt):
|
29 |
-
print(session_token)
|
30 |
chat_gpt = PyGPT(session_token)
|
31 |
await chat_gpt.connect()
|
32 |
await chat_gpt.wait_for_ready()
|
33 |
-
print(prompt)
|
34 |
answer = await chat_gpt.ask(prompt)
|
35 |
print(answer)
|
36 |
await chat_gpt.disconnect()
|
|
|
26 |
headers = {'Authorization': 'yusin'}
|
27 |
|
28 |
async def chat_gpt_ask(prompt):
|
|
|
29 |
chat_gpt = PyGPT(session_token)
|
30 |
await chat_gpt.connect()
|
31 |
await chat_gpt.wait_for_ready()
|
|
|
32 |
answer = await chat_gpt.ask(prompt)
|
33 |
print(answer)
|
34 |
await chat_gpt.disconnect()
|