Spaces:
Sleeping
Sleeping
Samuel L Meyers
commited on
Commit
·
aed5924
1
Parent(s):
0453504
print the response
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def m3b_talk(text):
|
|
39 |
|
40 |
for token in lcpp_model(formattedQuery, stop=["[|User|]", "\n"], echo=True):
|
41 |
resp += token
|
42 |
-
print(
|
43 |
jsn = json.loads(resp)
|
44 |
answer = jsn["choices"][0]["text"].replace(formattedQuery, "")
|
45 |
return answer
|
|
|
39 |
|
40 |
for token in lcpp_model(formattedQuery, stop=["[|User|]", "\n"], echo=True):
|
41 |
resp += token
|
42 |
+
print(resp)
|
43 |
jsn = json.loads(resp)
|
44 |
answer = jsn["choices"][0]["text"].replace(formattedQuery, "")
|
45 |
return answer
|