Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ def main(image_path, b_lora_trained_folder, instance_prompt, training_type, trai
|
|
190 |
log_url = f"https://huggingface.co/spaces/{os.environ['SPACE_ID']}?logs=container"
|
191 |
|
192 |
# Open URL in the current browser window
|
193 |
-
webbrowser.open(log_url)
|
194 |
|
195 |
|
196 |
local_dir = "image_to_train"
|
@@ -219,7 +219,7 @@ def main(image_path, b_lora_trained_folder, instance_prompt, training_type, trai
|
|
219 |
model_url = f"https://huggingface.co/{your_username}/{b_lora_trained_folder}"
|
220 |
|
221 |
# Open URL in the current browser window
|
222 |
-
webbrowser.open_new_tab(model_url)
|
223 |
|
224 |
#swap_hardware(hardware="cpu-basic")
|
225 |
swap_sleep_time(300)
|
|
|
190 |
log_url = f"https://huggingface.co/spaces/{os.environ['SPACE_ID']}?logs=container"
|
191 |
|
192 |
# Open URL in the current browser window
|
193 |
+
webbrowser.get().open(log_url)
|
194 |
|
195 |
|
196 |
local_dir = "image_to_train"
|
|
|
219 |
model_url = f"https://huggingface.co/{your_username}/{b_lora_trained_folder}"
|
220 |
|
221 |
# Open URL in the current browser window
|
222 |
+
webbrowser.get().open_new_tab(model_url)
|
223 |
|
224 |
#swap_hardware(hardware="cpu-basic")
|
225 |
swap_sleep_time(300)
|