Spaces:
Runtime error
Runtime error
Commit
·
fb2dfcd
1
Parent(s):
3817b73
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import replicate
|
| 3 |
+
|
| 4 |
+
# Set the replicate API token
|
| 5 |
+
import os
|
| 6 |
+
os.environ["REPLICATE_API_TOKEN"] = "r8_JSR8xlRoCk6cmq3qEOOThVTn3dAgdPq1bWXdj"
|
| 7 |
+
|
| 8 |
+
st.title("Stable Diffusion Infinite Zoom")
|
| 9 |
+
|
| 10 |
+
prompt = st.text_area("Enter your prompt here", height=200)
|
| 11 |
+
model_name = "arielreplicate/stable_diffusion_infinite_zoom:a2527c5074fc0cf9fa6015a40d75d080d1ddf7082fabe142f1ccd882c18fce61"
|
| 12 |
+
output = replicate.run(model_name, input={"prompt": prompt})
|
| 13 |
+
|
| 14 |
+
st.write("Output:")
|
| 15 |
+
st.text_area("Model Output", value=output, height=200)
|