cocoat commited on
Commit
07b2f34
·
verified ·
1 Parent(s): 7277820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(filepath, filename)
262
  # 非公開リポジトリにアップロード
263
- path_in_private_repo_for_history = upload_image_to_private_hub(filepath, filename)
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