ankankbhunia commited on
Commit
7492f2f
·
verified ·
1 Parent(s): 2cf0067

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -41,7 +41,7 @@ model.eval()
41
  def generate_image(text,folder, _ch3, images):
42
  # Your image generation logic goes here (replace with your actual implementation)
43
  # For demonstration purposes, we'll just concatenate the uploaded images horizontally.
44
- # try:
45
  text_copy = text
46
  if images:
47
  style_log = images
@@ -78,8 +78,8 @@ def generate_image(text,folder, _ch3, images):
78
  current_datetime = datetime.now()
79
  formatted_datetime = current_datetime.strftime("%Y-%m-%d %H:%M:%S")
80
 
81
- print (f'{formatted_datetime}: input_string - {text_copy}, style_input - {style_log}')
82
- # except:
83
  print ('ERROR! Try again.')
84
 
85
  return input_styles, page_val
 
41
  def generate_image(text,folder, _ch3, images):
42
  # Your image generation logic goes here (replace with your actual implementation)
43
  # For demonstration purposes, we'll just concatenate the uploaded images horizontally.
44
+ try:
45
  text_copy = text
46
  if images:
47
  style_log = images
 
78
  current_datetime = datetime.now()
79
  formatted_datetime = current_datetime.strftime("%Y-%m-%d %H:%M:%S")
80
 
81
+ print (f'{formatted_datetime}: input_string - {text_copy}, style_input - {style_log}\n')
82
+ except:
83
  print ('ERROR! Try again.')
84
 
85
  return input_styles, page_val