Spaces:
Running
Running
Update app.py
Browse files
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.copy()
|
| 46 |
if images:
|
| 47 |
style_log = images
|
|
@@ -79,10 +79,10 @@ def generate_image(text,folder, _ch3, images):
|
|
| 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 |
-
|
| 86 |
|
| 87 |
# Define Gradio Interface
|
| 88 |
iface = gr.Interface(
|
|
|
|
| 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.copy()
|
| 46 |
if images:
|
| 47 |
style_log = images
|
|
|
|
| 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
|
| 86 |
|
| 87 |
# Define Gradio Interface
|
| 88 |
iface = gr.Interface(
|