Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ from scripts.anime import init_model
|
|
7 |
from scripts.generate_prompt import load_wd14_tagger_model
|
8 |
import webbrowser
|
9 |
from datetime import datetime
|
|
|
10 |
|
11 |
# 初期化
|
12 |
initialize(_use_local=False, use_gpu=True, use_dotenv=True)
|
@@ -14,8 +15,8 @@ init_model(use_local=False)
|
|
14 |
load_wd14_tagger_model()
|
15 |
|
16 |
def process_image(input_image, mode, weight1=None, weight2=None):
|
17 |
-
|
18 |
-
print(f"[{
|
19 |
|
20 |
# 既存の画像処理ロジック
|
21 |
if mode == "original":
|
|
|
7 |
from scripts.generate_prompt import load_wd14_tagger_model
|
8 |
import webbrowser
|
9 |
from datetime import datetime
|
10 |
+
from pytz import timezone
|
11 |
|
12 |
# 初期化
|
13 |
initialize(_use_local=False, use_gpu=True, use_dotenv=True)
|
|
|
15 |
load_wd14_tagger_model()
|
16 |
|
17 |
def process_image(input_image, mode, weight1=None, weight2=None):
|
18 |
+
tokyo_time = datetime.now(timezone('Asia/Tokyo')).strftime("%Y-%m-%d %H:%M:%S") # 日本時間のタイムスタンプ
|
19 |
+
print(f"[{tokyo_time}] Processing image with mode={mode}, weight1={weight1}, weight2={weight2}")
|
20 |
|
21 |
# 既存の画像処理ロジック
|
22 |
if mode == "original":
|