not-lain commited on
Commit
4e99479
1 Parent(s): 34ac220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -23,7 +23,10 @@ cur_dir = os.path.dirname(os.path.abspath(__file__))
23
 
24
 
25
  @spaces.GPU
26
- def ovis_chat(message, history):
 
 
 
27
  try :
28
  image_input = Image.open(message["files"][0]).convert("RGB")
29
  new_image = True
 
23
 
24
 
25
  @spaces.GPU
26
+ def ovis_chat(message, history,hist=[]):
27
+ # workaround for API
28
+ if hist != history :
29
+ history = hist
30
  try :
31
  image_input = Image.open(message["files"][0]).convert("RGB")
32
  new_image = True