Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,8 @@ def bot_streaming(message, history, max_tokens, temperature, top_p, top_k, repet
|
|
24 |
for hist in history:
|
25 |
print(hist)
|
26 |
if type(hist[0])==tuple:
|
27 |
-
|
|
|
28 |
|
29 |
if image is None:
|
30 |
gr.Error("Lütfen önce bir resim yükleyin.")
|
|
|
24 |
for hist in history:
|
25 |
print(hist)
|
26 |
if type(hist[0])==tuple:
|
27 |
+
[('/tmp/gradio/d2358aee8efc2902714f1b4ccc3089ec858104a3e7c8fc7a6ae702e1d0bcbcb0/oguzhan.jpg',), None]
|
28 |
+
image = hist[0][0]
|
29 |
|
30 |
if image is None:
|
31 |
gr.Error("Lütfen önce bir resim yükleyin.")
|