Spaces:
Runtime error
Runtime error
gaspar-avit
commited on
Commit
•
2bd107f
1
Parent(s):
0984e5d
Upload app.py
Browse files
app.py
CHANGED
@@ -189,7 +189,6 @@ def query_generate(text, genres, year):
|
|
189 |
headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
|
190 |
text = 'A movie Poster based on the following synopsis: \"' + text + '\". Style: ' + genres + ', year ' + year + \
|
191 |
'. Ignore ' + ''.join(random.choices(string.ascii_letters, k=10))
|
192 |
-
st.write(text)
|
193 |
payload = {"inputs": f"{text}",}
|
194 |
|
195 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
189 |
headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
|
190 |
text = 'A movie Poster based on the following synopsis: \"' + text + '\". Style: ' + genres + ', year ' + year + \
|
191 |
'. Ignore ' + ''.join(random.choices(string.ascii_letters, k=10))
|
|
|
192 |
payload = {"inputs": f"{text}",}
|
193 |
|
194 |
response = requests.post(API_URL, headers=headers, json=payload)
|