Update app.py
Browse files
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()
|