Spaces:
Running
Running
Space-Face
commited on
Commit
•
e4fd379
1
Parent(s):
a0a6f65
Update GPTSimple.py
Browse files- GPTSimple.py +1 -0
GPTSimple.py
CHANGED
@@ -56,6 +56,7 @@ class conversation:
|
|
56 |
yield token
|
57 |
class response:
|
58 |
def __init__(self, json):
|
|
|
59 |
self.response = json
|
60 |
self.choices = json['choices']
|
61 |
self.text = json['choices'][0]['message']['content']
|
|
|
56 |
yield token
|
57 |
class response:
|
58 |
def __init__(self, json):
|
59 |
+
print(json)
|
60 |
self.response = json
|
61 |
self.choices = json['choices']
|
62 |
self.text = json['choices'][0]['message']['content']
|