gaspar-avit commited on
Commit
8741317
·
1 Parent(s): 4585239

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -185,7 +185,7 @@ def query_generate(text, genres, year):
185
  headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
186
  text = 'A movie Poster in portrait mode based on the following synopsis: \"' + text + '\". Style: ' + genres + ', year ' + year + \
187
  '. Ignore ' + ''.join(random.choices(string.ascii_letters, k=10))
188
- payload = {"inputs": f"{text}", "options": {"use_cache": False},}
189
 
190
  response = requests.post(API_URL, headers=headers, json=payload)
191
 
 
185
  headers = {"Authorization": f"Bearer {st.secrets['hf_token']}"}
186
  text = 'A movie Poster in portrait mode based on the following synopsis: \"' + text + '\". Style: ' + genres + ', year ' + year + \
187
  '. Ignore ' + ''.join(random.choices(string.ascii_letters, k=10))
188
+ payload = {"inputs": f"{text}", "options": {"use_cache": "false"},}
189
 
190
  response = requests.post(API_URL, headers=headers, json=payload)
191