remove excess logging
Browse files
app.py
CHANGED
@@ -78,7 +78,6 @@ def query(prompt, negative_prompt="", steps=30, cfg_scale=7, seed=-1, width=1024
|
|
78 |
|
79 |
# API Call Section
|
80 |
try:
|
81 |
-
print(f"Sending request to API: {API_URL}")
|
82 |
if not headers:
|
83 |
print("WARNING: Authorization header is missing (HF_READ_TOKEN not set?)")
|
84 |
return None, "<p style='color: red; text-align: center;'>Configuration Error: API Token missing.</p>"
|
@@ -103,7 +102,6 @@ def query(prompt, negative_prompt="", steps=30, cfg_scale=7, seed=-1, width=1024
|
|
103 |
absolute_save_path = os.path.abspath(save_path)
|
104 |
|
105 |
try:
|
106 |
-
print(f"Attempting to save image to: {absolute_save_path}")
|
107 |
image.save(save_path, "PNG")
|
108 |
|
109 |
if os.path.exists(save_path):
|
@@ -126,7 +124,7 @@ def query(prompt, negative_prompt="", steps=30, cfg_scale=7, seed=-1, width=1024
|
|
126 |
|
127 |
encoded_file_url = quote(relative_file_url)
|
128 |
arintelli_url = f"{ARINTELLI_REDIRECT_BASE}?download_url={encoded_file_url}&space_name={space_name}"
|
129 |
-
print(f"Generation link: {arintelli_url}")
|
130 |
|
131 |
# Use Gradio's primary button style for the link
|
132 |
download_html = (
|
|
|
78 |
|
79 |
# API Call Section
|
80 |
try:
|
|
|
81 |
if not headers:
|
82 |
print("WARNING: Authorization header is missing (HF_READ_TOKEN not set?)")
|
83 |
return None, "<p style='color: red; text-align: center;'>Configuration Error: API Token missing.</p>"
|
|
|
102 |
absolute_save_path = os.path.abspath(save_path)
|
103 |
|
104 |
try:
|
|
|
105 |
image.save(save_path, "PNG")
|
106 |
|
107 |
if os.path.exists(save_path):
|
|
|
124 |
|
125 |
encoded_file_url = quote(relative_file_url)
|
126 |
arintelli_url = f"{ARINTELLI_REDIRECT_BASE}?download_url={encoded_file_url}&space_name={space_name}"
|
127 |
+
print(f"Generation {key} link: {arintelli_url}")
|
128 |
|
129 |
# Use Gradio's primary button style for the link
|
130 |
download_html = (
|