Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,16 @@ now2 = 0
|
|
10 |
kii=" mohawk femboy racecar driver "
|
11 |
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
def get_current_time():
|
14 |
now = datetime.now()
|
15 |
now2 = now
|
@@ -75,19 +85,11 @@ def gen_fn(model_str, prompt, negative_prompt):
|
|
75 |
print(f"Unexpected response type: {type(image_response)}")
|
76 |
return None
|
77 |
except Exception as e:
|
78 |
-
print(f"Error occurred: {e}")
|
79 |
return None
|
80 |
|
81 |
|
82 |
|
83 |
-
def log_message():
|
84 |
-
logs = ""
|
85 |
-
for i in range(5): # Simulate some logging over time
|
86 |
-
logs += f"Log message {i+1}\n"
|
87 |
-
time.sleep(1)
|
88 |
-
return logs
|
89 |
-
|
90 |
-
|
91 |
def make_me():
|
92 |
with gr.Row():
|
93 |
txt_input = gr.Textbox(lines=2, value=kii)
|
|
|
10 |
kii=" mohawk femboy racecar driver "
|
11 |
|
12 |
|
13 |
+
|
14 |
+
|
15 |
+
def log_message():
|
16 |
+
logs = ""
|
17 |
+
for i in range(5): # Simulate some logging over time
|
18 |
+
logs += f"Log message {i+1}\n"
|
19 |
+
time.sleep(1)
|
20 |
+
return logs
|
21 |
+
|
22 |
+
|
23 |
def get_current_time():
|
24 |
now = datetime.now()
|
25 |
now2 = now
|
|
|
85 |
print(f"Unexpected response type: {type(image_response)}")
|
86 |
return None
|
87 |
except Exception as e:
|
88 |
+
print(f"{image_response} Error occurred: {e}")
|
89 |
return None
|
90 |
|
91 |
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
def make_me():
|
94 |
with gr.Row():
|
95 |
txt_input = gr.Textbox(lines=2, value=kii)
|