Ubaidbhat commited on
Commit
60492f4
·
verified ·
1 Parent(s): 7d9f98c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- message = "Please enter your first name in the text field to continue."
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")