khurrameycon commited on
Commit
832e593
·
verified ·
1 Parent(s): e59f632

text variable updated

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": txt}]}]
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)