akhaliq HF Staff commited on
Commit
df3c3c8
·
1 Parent(s): eefc4be

remove upload temp media files

Browse files
Files changed (1) hide show
  1. app.py +0 -12
app.py CHANGED
@@ -7006,13 +7006,6 @@ with gr.Blocks(
7006
  import tempfile
7007
  import os
7008
 
7009
- # Upload temporary media files to HF and replace URLs (only for Static HTML, not Transformers.js)
7010
- if sdk == "static" and language == "html":
7011
- print("[Deploy] Uploading temporary media files to HF and updating URLs for multi-file static HTML app")
7012
- # Update the index.html file with permanent media URLs
7013
- if 'index.html' in files:
7014
- files['index.html'] = upload_temp_files_to_hf_and_replace_urls(files['index.html'], token)
7015
-
7016
  try:
7017
  with tempfile.TemporaryDirectory() as tmpdir:
7018
  # Write each file preserving subdirectories if any
@@ -7047,11 +7040,6 @@ with gr.Blocks(
7047
  print("[Deploy] Converting ComfyUI JSON to prettified HTML display")
7048
  code = prettify_comfyui_json_for_html(code)
7049
 
7050
- # Upload temporary media files to HF and replace URLs (only for Static HTML, not Transformers.js)
7051
- if sdk == "static" and language == "html":
7052
- print("[Deploy] Uploading temporary media files to HF and updating URLs for single-file static HTML app")
7053
- code = upload_temp_files_to_hf_and_replace_urls(code, token)
7054
-
7055
  max_attempts = 3
7056
  for attempt in range(max_attempts):
7057
  import tempfile
 
7006
  import tempfile
7007
  import os
7008
 
 
 
 
 
 
 
 
7009
  try:
7010
  with tempfile.TemporaryDirectory() as tmpdir:
7011
  # Write each file preserving subdirectories if any
 
7040
  print("[Deploy] Converting ComfyUI JSON to prettified HTML display")
7041
  code = prettify_comfyui_json_for_html(code)
7042
 
 
 
 
 
 
7043
  max_attempts = 3
7044
  for attempt in range(max_attempts):
7045
  import tempfile