diff --git a/app.py b/app.py index 7acceb5..6b581c3 100644 --- a/app.py +++ b/app.py @@ -42,10 +42,6 @@ def generate_image_cached(prompt, hf_api_token, retries=3, delay=30): # Make the request to Hugging Face API response = requests.post(IMAGE_GEN_URL, headers=headers, json={"inputs": prompt}) - # Log the full response for debugging - st.sidebar.write(f"Response Status Code: {response.status_code}") - st.sidebar.write(f"Raw Response Text: {response.text[:500]}") # Print raw response body (first 500 chars) - # Handle successful response if response.status_code == 200: # Check if the response contains binary image data