Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriek-cloud authored Nov 21, 2024
1 parent 8940c15 commit 3a959e3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a959e3

Please sign in to comment.