miittnnss commited on
Commit
55cc769
·
1 Parent(s): b38253d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -28,9 +28,7 @@ def select_model(model_name):
28
  def extend_prompt(input_text):
29
  API_URL = "https://api-inference.huggingface.co/models/Gustavosta/MagicPrompt-Stable-Diffusion"
30
 
31
- payload = {
32
- "inputs": input_text
33
- }
34
 
35
  response = requests.post(API_URL, headers=HEADERS, json=payload)
36
  response.raise_for_status()
 
28
  def extend_prompt(input_text):
29
  API_URL = "https://api-inference.huggingface.co/models/Gustavosta/MagicPrompt-Stable-Diffusion"
30
 
31
+ payload = {"inputs": input_text}
 
 
32
 
33
  response = requests.post(API_URL, headers=HEADERS, json=payload)
34
  response.raise_for_status()