Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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{
|
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)
|