nroggendorff commited on
Commit
c14dfd6
1 Parent(s): 9213916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -51,6 +51,8 @@ def bot_streaming(message, history):
51
  if image is None:
52
  # Handle the case where image is None
53
  image = "http://files.tatl.tv/ignore.png"
 
 
54
 
55
  prompt = f"<|start_header_id|>user<|end_header_id|>\n\n<image>\n{message['text']}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"
56
  # print(f"prompt: {prompt}")
 
51
  if image is None:
52
  # Handle the case where image is None
53
  image = "http://files.tatl.tv/ignore.png"
54
+ else:
55
+ image = image
56
 
57
  prompt = f"<|start_header_id|>user<|end_header_id|>\n\n<image>\n{message['text']}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"
58
  # print(f"prompt: {prompt}")