Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,17 @@ def infer(prompt):
|
|
32 |
images.append(image_b64)
|
33 |
|
34 |
return images
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
|
37 |
css = """
|
|
|
32 |
images.append(image_b64)
|
33 |
|
34 |
return images
|
35 |
+
|
36 |
+
def query(payload):
|
37 |
+
response = requests.post(API_URL, headers=headers, json=payload)
|
38 |
+
return response.content
|
39 |
+
|
40 |
+
output = query({
|
41 |
+
"inputs": "Astronaut riding a horse",
|
42 |
+
"parameters": {
|
43 |
+
"num_inference_steps": 25,
|
44 |
+
"negative_prompt": "deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation, (NSFW:1.25)",
|
45 |
+
"num_images_per_prompt": 4
|
46 |
|
47 |
|
48 |
css = """
|