gaspar-avit commited on
Commit
7db6d59
·
1 Parent(s): 1decd4a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.wrtie(text)
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)