Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
·
7db6d59
1
Parent(s):
1decd4a
Upload app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ def query_generate(text, genres):
|
|
186 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
187 |
headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
|
188 |
text = "Poster of movie. " + text + '. ' + genres
|
189 |
-
st.
|
190 |
payload = {"inputs": f"{text}",}
|
191 |
|
192 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
186 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
187 |
headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
|
188 |
text = "Poster of movie. " + text + '. ' + genres
|
189 |
+
st.write(text)
|
190 |
payload = {"inputs": f"{text}",}
|
191 |
|
192 |
response = requests.post(API_URL, headers=headers, json=payload)
|