Spaces:
Paused
Paused
Update app.py
Browse files
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
|