ucsahin commited on
Commit
3139a51
·
verified ·
1 Parent(s): dcacce0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- image = hist[0][-1].path
 
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.")