Spaces:
Sleeping
Sleeping
alibidaran
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def respond(history):
|
|
29 |
response=llm(text,
|
30 |
max_tokens=512,
|
31 |
echo=True)
|
32 |
-
response=response['
|
33 |
print(response)
|
34 |
history.append({'role':'assistant','content':""})
|
35 |
for character in response:
|
|
|
29 |
response=llm(text,
|
30 |
max_tokens=512,
|
31 |
echo=True)
|
32 |
+
response=response['choices'][0]['text']
|
33 |
print(response)
|
34 |
history.append({'role':'assistant','content':""})
|
35 |
for character in response:
|