magicfixeseverything commited on
Commit
c1f4913
·
1 Parent(s): 2baf14d

Upload spaghetti_ai_script.py

Browse files
Files changed (1) hide show
  1. spaghetti_ai_script.py +2 -14
spaghetti_ai_script.py CHANGED
@@ -1065,7 +1065,7 @@ if script_being_run_on_hugging_face == 1:
1065
 
1066
 
1067
  ending_html = """
1068
- If you would like to download this app to run offline on a Windows computer that has a NVIDIA graphics card, click <a href=\"https://huggingface.co/spaces/magicfixeseverything/ai_image_creation/resolve/main/spaghetti_ai.zip\">here</a> to download it.
1069
 
1070
  """ + ending_html
1071
 
@@ -3022,7 +3022,7 @@ def load_image_preview (
3022
 
3023
  user_id_state_value = user_id_state.value
3024
 
3025
- print ("Image preview check run", current_preview_image_user_id, user_id_state_value)
3026
 
3027
  if (
3028
  (user_id_state_value > 0) and
@@ -5381,18 +5381,6 @@ def get_query_params(
5381
 
5382
 
5383
 
5384
- print ("-----a-----")
5385
- print (request.headers)
5386
- print ("-----b-----")
5387
- print (request.client)
5388
- print ("-----c-----")
5389
- print (request.query_params)
5390
- print ("-----d-----")
5391
- print (request.path_params)
5392
- print ("-----e-----")
5393
-
5394
-
5395
-
5396
  page_url = str(request.headers["referer"])
5397
 
5398
  page_url = page_url.split("?")[0]
 
1065
 
1066
 
1067
  ending_html = """
1068
+ If you would like to download this <a href="https://huggingface.co/spaces/magicfixeseverything/ai_image_creation/tree/main" target="_blank">app</a> to run offline on a Windows computer that has a NVIDIA graphics card, click <a href=\"https://huggingface.co/spaces/magicfixeseverything/ai_image_creation/resolve/main/spaghetti_ai.zip\">here</a> to download it.
1069
 
1070
  """ + ending_html
1071
 
 
3022
 
3023
  user_id_state_value = user_id_state.value
3024
 
3025
+ # print ("Image preview check run", current_preview_image_user_id, user_id_state_value)
3026
 
3027
  if (
3028
  (user_id_state_value > 0) and
 
5381
 
5382
 
5383
 
 
 
 
 
 
 
 
 
 
 
 
 
5384
  page_url = str(request.headers["referer"])
5385
 
5386
  page_url = page_url.split("?")[0]