Update app.py
Browse files
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
|