ysharma HF Staff commited on
Commit
d88af9c
·
verified ·
1 Parent(s): a7ed3e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def bot_streaming(message, history):
87
  gr.Error("You need to upload an image for LLaVA to work.")
88
 
89
  #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"
90
- prompt = f"""User:<image>\n{instruction} Falcon:"""
91
  # print(f"prompt: {prompt}")
92
  image = Image.open(image)
93
  inputs = processor(prompt, image, return_tensors='pt').to(0, torch.float16)
 
87
  gr.Error("You need to upload an image for LLaVA to work.")
88
 
89
  #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"
90
+ prompt = f"""User:<image>\n{message} Falcon:"""
91
  # print(f"prompt: {prompt}")
92
  image = Image.open(image)
93
  inputs = processor(prompt, image, return_tensors='pt').to(0, torch.float16)