hanzla commited on
Commit
cff67c8
1 Parent(s): 5b657e3

chat interface new

Browse files
Files changed (1) hide show
  1. app_v2.py +1 -1
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