Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -258,10 +258,10 @@ def infer(prompt, neg, seed, rand, w, h, cfg, steps, scheduler_type,
|
|
| 258 |
caption_text_for_history = caption_text.replace("\n", "|-|").strip()
|
| 259 |
# 画像をHubにアップロードし、そのURLとリポジトリ内パスを取得
|
| 260 |
# 公開用リポジトリにアップロード
|
| 261 |
-
uploaded_image_url, path_in_public_repo_for_history = upload_image_to_hub(
|
| 262 |
# 非公開リポジトリにアップロード
|
| 263 |
-
path_in_private_repo_for_history = upload_image_to_private_hub(
|
| 264 |
-
|
| 265 |
|
| 266 |
# 履歴を更新
|
| 267 |
global history
|
|
|
|
| 258 |
caption_text_for_history = caption_text.replace("\n", "|-|").strip()
|
| 259 |
# 画像をHubにアップロードし、そのURLとリポジトリ内パスを取得
|
| 260 |
# 公開用リポジトリにアップロード
|
| 261 |
+
uploaded_image_url, path_in_public_repo_for_history = upload_image_to_hub(img, caption_text)
|
| 262 |
# 非公開リポジトリにアップロード
|
| 263 |
+
path_in_private_repo_for_history = upload_image_to_private_hub(img, caption_text)
|
| 264 |
+
|
| 265 |
|
| 266 |
# 履歴を更新
|
| 267 |
global history
|