Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,6 @@ def respond(message, history):
|
|
107 |
image = Image.open(image).convert("RGB")
|
108 |
prompt = f"<|im_start|>user <image>\n{user_prompt}<|im_end|><|im_start|>assistant"
|
109 |
|
110 |
-
print(len(image))
|
111 |
-
|
112 |
inputs = processor(prompt, image, return_tensors="pt")
|
113 |
streamer = TextIteratorStreamer(processor, skip_prompt=True, **{"skip_special_tokens": True})
|
114 |
generation_kwargs = dict(inputs, streamer=streamer, max_new_tokens=1024)
|
|
|
107 |
image = Image.open(image).convert("RGB")
|
108 |
prompt = f"<|im_start|>user <image>\n{user_prompt}<|im_end|><|im_start|>assistant"
|
109 |
|
|
|
|
|
110 |
inputs = processor(prompt, image, return_tensors="pt")
|
111 |
streamer = TextIteratorStreamer(processor, skip_prompt=True, **{"skip_special_tokens": True})
|
112 |
generation_kwargs = dict(inputs, streamer=streamer, max_new_tokens=1024)
|