Spaces:
Sleeping
Sleeping
text variable updated
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def predict(image, text):
|
|
| 57 |
|
| 58 |
def predict_text(text):
|
| 59 |
# Prepare the input messages
|
| 60 |
-
messages = [{"role": "user", "content": [{"type": "text", "text":
|
| 61 |
|
| 62 |
# Create the input text using the processor's chat template
|
| 63 |
input_text = processor.apply_chat_template(messages, add_generation_prompt=True)
|
|
|
|
| 57 |
|
| 58 |
def predict_text(text):
|
| 59 |
# Prepare the input messages
|
| 60 |
+
messages = [{"role": "user", "content": [{"type": "text", "text": text}]}]
|
| 61 |
|
| 62 |
# Create the input text using the processor's chat template
|
| 63 |
input_text = processor.apply_chat_template(messages, add_generation_prompt=True)
|