From 23add19e58c9a187ad3112246f8596bab398ad1b Mon Sep 17 00:00:00 2001 From: Tyriek Warren <62261407+Tyriek-cloud@users.noreply.github.com> Date: Wed, 20 Nov 2024 21:43:16 -0500 Subject: [PATCH] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ab422c4..06b8988 100644 --- a/app.py +++ b/app.py @@ -44,6 +44,7 @@ def generate_image_cached(prompt, hf_api_token, retries=3, delay=30): # Log the full response for debugging st.sidebar.write(f"Response Status Code: {response.status_code}") + st.sidebar.write(response.text) # Handle successful response if response.status_code == 200: @@ -121,7 +122,6 @@ def main(): # User's method to generate images (Move this to a separate section in the sidebar) st.sidebar.header("Image Generation") image_prompt = st.sidebar.text_input("Enter a detailed prompt to generate an image:", "A statistician holding a calculator.") - st.sidebar.write(response.text) if image_prompt: with st.spinner("Generating image..."):