k-l-lambda
commited on
Commit
•
9e8fb21
1
Parent(s):
44b508c
app.py: print time.
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ import PIL.Image
|
|
9 |
from typing import Tuple
|
10 |
from novita_client import NovitaClient, InstantIDControlnetUnit, InstantIDLora
|
11 |
from time import time
|
|
|
12 |
|
13 |
from style_template import styles
|
14 |
|
@@ -345,7 +346,7 @@ def generate_image (
|
|
345 |
callback=progress_,
|
346 |
)
|
347 |
|
348 |
-
print('task_id:', res.task.task_id)
|
349 |
except Exception as e:
|
350 |
raise gr.Error(f'Error: {e}')
|
351 |
|
|
|
9 |
from typing import Tuple
|
10 |
from novita_client import NovitaClient, InstantIDControlnetUnit, InstantIDLora
|
11 |
from time import time
|
12 |
+
import datetime
|
13 |
|
14 |
from style_template import styles
|
15 |
|
|
|
346 |
callback=progress_,
|
347 |
)
|
348 |
|
349 |
+
print('task_id:', datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), res.task.task_id)
|
350 |
except Exception as e:
|
351 |
raise gr.Error(f'Error: {e}')
|
352 |
|