Spaces:
Runtime error
Runtime error
chat interface new
Browse files
app_v2.py
CHANGED
|
@@ -32,7 +32,7 @@ def add_message(history, message):
|
|
| 32 |
if message["text"] is not None:
|
| 33 |
history.append((message["text"], None))
|
| 34 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 35 |
-
|
| 36 |
def bot(history):
|
| 37 |
# Reverse search through the last 5 messages for an image file
|
| 38 |
last_five_messages = history[-5:] # Get the last five messages
|
|
|
|
| 32 |
if message["text"] is not None:
|
| 33 |
history.append((message["text"], None))
|
| 34 |
return history, gr.MultimodalTextbox(value=None, interactive=False)
|
| 35 |
+
@spaces.GPU(duration=10)
|
| 36 |
def bot(history):
|
| 37 |
# Reverse search through the last 5 messages for an image file
|
| 38 |
last_five_messages = history[-5:] # Get the last five messages
|