gaspar-avit commited on
Commit
b8ad675
·
1 Parent(s): 8b234db

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -185,6 +185,7 @@ def query_generate(text):
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
  payload = {"inputs": f"{text}",}
189
 
190
  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 = "Poster of movie. " + text
189
  payload = {"inputs": f"{text}",}
190
 
191
  response = requests.post(API_URL, headers=headers, json=payload)