fix: fix string concatenation bug in GradioUI.log_user_message (#199)

This commit is contained in:
kingdomad 2025-01-15 21:00:15 +08:00 committed by GitHub
parent a22c221fa7
commit 7ce27f1590
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ class GradioUI:
def log_user_message(self, text_input, file_uploads_log): def log_user_message(self, text_input, file_uploads_log):
return ( return (
text_input text_input
+ f"\nYou have been provided with these files, which might be helpful or not: {file_uploads_log}" + (f"\nYou have been provided with these files, which might be helpful or not: {file_uploads_log}"
if len(file_uploads_log) > 0 if len(file_uploads_log) > 0
else "", else ""),
"", "",
) )