Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
·
0d1c5b9
1
Parent(s):
7db6d59
Upload app.py
Browse files
app.py
CHANGED
@@ -185,8 +185,8 @@ def query_generate(text, genres):
|
|
185 |
"""
|
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 =
|
189 |
-
st.write(text)
|
190 |
payload = {"inputs": f"{text}",}
|
191 |
|
192 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
185 |
"""
|
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 = 'A movie Poster based on the following synopsis: \"' + text + '\". Style: ' + genres
|
189 |
+
st.write('INFO: '+text)
|
190 |
payload = {"inputs": f"{text}",}
|
191 |
|
192 |
response = requests.post(API_URL, headers=headers, json=payload)
|