Update app.py
Browse files
app.py
CHANGED
@@ -275,8 +275,7 @@ def calculate_duration(duration_file_path: str):
|
|
275 |
def pred(user_name, image_path, audio):
|
276 |
|
277 |
if user_name.strip() == "":
|
278 |
-
|
279 |
-
return message, message, transform_text_to_speech(message, user_name)
|
280 |
|
281 |
if image_path:
|
282 |
current_date = datetime.now().strftime("%Y-%m-%d")
|
|
|
275 |
def pred(user_name, image_path, audio):
|
276 |
|
277 |
if user_name.strip() == "":
|
278 |
+
user_name = "Unknown"
|
|
|
279 |
|
280 |
if image_path:
|
281 |
current_date = datetime.now().strftime("%Y-%m-%d")
|