Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ class chatgpt:
|
|
| 25 |
self.conversation.append({'role': response.choices[0].message.role, 'content': response.choices[0].message.content})
|
| 26 |
return self.history, self.history
|
| 27 |
except* Exception as error:
|
| 28 |
-
|
| 29 |
|
| 30 |
|
| 31 |
def Clean(self):
|
|
|
|
| 25 |
self.conversation.append({'role': response.choices[0].message.role, 'content': response.choices[0].message.content})
|
| 26 |
return self.history, self.history
|
| 27 |
except* Exception as error:
|
| 28 |
+
gr.Error(f"{error.exceptions}")
|
| 29 |
|
| 30 |
|
| 31 |
def Clean(self):
|