ruslanmv commited on
Commit
d6028f5
1 Parent(s): f3700d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def predict(image, text):
54
  # Decode the output to return the final response
55
  response = processor.decode(outputs[0], skip_special_tokens=True)
56
 
57
- # Format the conversation for a better appearance
58
  formatted_response = f"User: {text}\n\nAssistant: {response}"
59
 
60
  return formatted_response
 
54
  # Decode the output to return the final response
55
  response = processor.decode(outputs[0], skip_special_tokens=True)
56
 
57
+ # Format the conversation for a better appearance without repetition
58
  formatted_response = f"User: {text}\n\nAssistant: {response}"
59
 
60
  return formatted_response