NagisaNao commited on
Commit
901f5da
·
verified ·
1 Parent(s): 723616e

🐛 fix timer?

Browse files
files_cells/notebooks/en/downloading_en.ipynb CHANGED
@@ -185,7 +185,7 @@
185
  " !unzip -q -o {zip_path} -d {webui_path}\n",
186
  " !rm -rf {zip_path}\n",
187
  "\n",
188
- " !echo -n {start_colab} > {webui_path}/static/colabTimer.txt\n",
189
  "\n",
190
  " install_time = time.time() - start_install\n",
191
  " minutes, seconds = divmod(int(install_time), 60)\n",
 
185
  " !unzip -q -o {zip_path} -d {webui_path}\n",
186
  " !rm -rf {zip_path}\n",
187
  "\n",
188
+ " handle_colab_timer(webui_path, start_colab)\n",
189
  "\n",
190
  " install_time = time.time() - start_install\n",
191
  " minutes, seconds = divmod(int(install_time), 60)\n",
files_cells/notebooks/ru/downloading_ru.ipynb CHANGED
@@ -185,7 +185,7 @@
185
  " !unzip -q -o {zip_path} -d {webui_path}\n",
186
  " !rm -rf {zip_path}\n",
187
  "\n",
188
- " !echo -n {start_colab} > {webui_path}/static/colabTimer.txt\n",
189
  "\n",
190
  " install_time = time.time() - start_install\n",
191
  " minutes, seconds = divmod(int(install_time), 60)\n",
 
185
  " !unzip -q -o {zip_path} -d {webui_path}\n",
186
  " !rm -rf {zip_path}\n",
187
  "\n",
188
+ " handle_colab_timer(webui_path, start_colab)\n",
189
  "\n",
190
  " install_time = time.time() - start_install\n",
191
  " minutes, seconds = divmod(int(install_time), 60)\n",
files_cells/python/en/downloading_en.py CHANGED
@@ -175,7 +175,7 @@ def unpack_webui():
175
  get_ipython().system('unzip -q -o {zip_path} -d {webui_path}')
176
  get_ipython().system('rm -rf {zip_path}')
177
 
178
- get_ipython().system('echo -n {start_colab} > {webui_path}/static/colabTimer.txt')
179
 
180
  install_time = time.time() - start_install
181
  minutes, seconds = divmod(int(install_time), 60)
 
175
  get_ipython().system('unzip -q -o {zip_path} -d {webui_path}')
176
  get_ipython().system('rm -rf {zip_path}')
177
 
178
+ handle_colab_timer(webui_path, start_colab)
179
 
180
  install_time = time.time() - start_install
181
  minutes, seconds = divmod(int(install_time), 60)
files_cells/python/ru/downloading_ru.py CHANGED
@@ -175,7 +175,7 @@ def unpack_webui():
175
  get_ipython().system('unzip -q -o {zip_path} -d {webui_path}')
176
  get_ipython().system('rm -rf {zip_path}')
177
 
178
- get_ipython().system('echo -n {start_colab} > {webui_path}/static/colabTimer.txt')
179
 
180
  install_time = time.time() - start_install
181
  minutes, seconds = divmod(int(install_time), 60)
 
175
  get_ipython().system('unzip -q -o {zip_path} -d {webui_path}')
176
  get_ipython().system('rm -rf {zip_path}')
177
 
178
+ handle_colab_timer(webui_path, start_colab)
179
 
180
  install_time = time.time() - start_install
181
  minutes, seconds = divmod(int(install_time), 60)