Spaces:
Runtime error
Runtime error
Commit
·
7b95f1c
1
Parent(s):
2a75d54
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import base64
|
|
6 |
|
7 |
api_url = "https://5cb20b40-572c-426f-9466-995256f9b6eb.id.repl.co/generate_image"
|
8 |
|
9 |
-
def generate_image(model="Dreamlike
|
10 |
data = "?model=" + model + "&prompt=" + prompt + "&seed=" + str(seed) + "&negative_prompt=" + negative_prompt + "&sampler=" + sampler + "&steps=" + str(steps)
|
11 |
response = requests.post(api_url + data, timeout=400)
|
12 |
if response.status_code == 200:
|
@@ -18,7 +18,7 @@ def generate_image(model="Dreamlike Photoreal", prompt="", seed=0, negative_prom
|
|
18 |
return None
|
19 |
|
20 |
inputs = [
|
21 |
-
gr.inputs.Dropdown(['
|
22 |
gr.inputs.Textbox(label="Prompt"),
|
23 |
gr.inputs.Number(label="Seed", default=0),
|
24 |
gr.inputs.Textbox(label="Negative Prompt", default=""),
|
|
|
6 |
|
7 |
api_url = "https://5cb20b40-572c-426f-9466-995256f9b6eb.id.repl.co/generate_image"
|
8 |
|
9 |
+
def generate_image(model="Dreamlike Diffusion", prompt="", seed=0, negative_prompt="", sampler="k_dpmpp_2s_a", steps=50):
|
10 |
data = "?model=" + model + "&prompt=" + prompt + "&seed=" + str(seed) + "&negative_prompt=" + negative_prompt + "&sampler=" + sampler + "&steps=" + str(steps)
|
11 |
response = requests.post(api_url + data, timeout=400)
|
12 |
if response.status_code == 200:
|
|
|
18 |
return None
|
19 |
|
20 |
inputs = [
|
21 |
+
gr.inputs.Dropdown(['Deliberate', 'Dreamlike Diffusion', 'Dreamshaper', 'Elden Ring Diffusion', 'Epic Diffusion', 'Experience', 'FaeTastic', 'Inkpunk Diffusion', 'Kenshi', 'Mega Merge Diffusion', 'Midjourney Diffusion', 'Midjourney PaintArt', 'ModernArt Diffusion', 'Movie Diffusion', 'NeverEnding Dream', 'PRMJ', 'ProtoGen', 'RealBiter', 'RCNZ Gorilla With A Brick', 'RPG', 'Seek.art MEGA', 'Samdoesarts Ultmerge', 'Seek.art MEGA', 'Unstable Ink Dream', 'Van Gogh Diffusion', 'VinteProtogenMix' ], label="Model", default="Dreamlike Diffusion"),
|
22 |
gr.inputs.Textbox(label="Prompt"),
|
23 |
gr.inputs.Number(label="Seed", default=0),
|
24 |
gr.inputs.Textbox(label="Negative Prompt", default=""),
|