Spaces:
Sleeping
Sleeping
Singularity666
commited on
Commit
·
cab9eda
1
Parent(s):
8b2f708
Update app.py
Browse files
app.py
CHANGED
@@ -17,5 +17,8 @@ stability_api_key = st.text_input("Enter your Stability API key")
|
|
17 |
replicate_api_token = st.text_input("Enter your Replicate API token")
|
18 |
|
19 |
if st.button("Generate and Upscale Image"):
|
20 |
-
final_image_bytes = generate_and_upscale_image(text_prompt, clipdrop_api_key, stability_api_key, replicate_api_token)
|
21 |
-
|
|
|
|
|
|
|
|
17 |
replicate_api_token = st.text_input("Enter your Replicate API token")
|
18 |
|
19 |
if st.button("Generate and Upscale Image"):
|
20 |
+
final_image_bytes, error = generate_and_upscale_image(text_prompt, clipdrop_api_key, stability_api_key, replicate_api_token)
|
21 |
+
if error:
|
22 |
+
st.error(error)
|
23 |
+
else:
|
24 |
+
st.markdown(get_image_download_link(final_image_bytes, "gfpgan_upscaled_image.png"), unsafe_allow_html=True)
|