Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -520,6 +520,10 @@ messages = [
|
|
| 520 |
def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
| 521 |
if UserInput.lower() == "clear history":
|
| 522 |
messages.clear()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
if Textbox3 == code:
|
| 524 |
imageData = None
|
| 525 |
if Images != "None":
|
|
|
|
| 520 |
def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
| 521 |
if UserInput.lower() == "clear history":
|
| 522 |
messages.clear()
|
| 523 |
+
messages.append(
|
| 524 |
+
{"role": "system", "content": system}
|
| 525 |
+
)
|
| 526 |
+
|
| 527 |
if Textbox3 == code:
|
| 528 |
imageData = None
|
| 529 |
if Images != "None":
|