Update main.py
Browse files
main.py
CHANGED
@@ -38,13 +38,15 @@ def create_job(prompt, model, sampler, seed, neg):
|
|
38 |
|
39 |
@app.get('/')
|
40 |
def hello_world():
|
41 |
-
return """
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
|
|
48 |
"""
|
49 |
|
50 |
@app.get("/generate_image")
|
|
|
38 |
|
39 |
@app.get('/')
|
40 |
def hello_world():
|
41 |
+
return return """
|
42 |
+
This is an API for AI-generated images.
|
43 |
+
Params:
|
44 |
+
- prompt: The prompt for image generation
|
45 |
+
- model: The model to use for image generation (default: Realistic_Vision_V5.0.safetensors [614d1063])
|
46 |
+
- negative_prompt: Negative prompts for image generation
|
47 |
+
- seed: The seed for image generation (default: -1)
|
48 |
+
- sampler: The sampler to use for image generation (default: DPM++ 2M Karras)
|
49 |
+
Sample: /generate_image?prompt=your_prompt&model=model_name&sampler=sampler_name&seed=seed_number&neg=negative_prompts
|
50 |
"""
|
51 |
|
52 |
@app.get("/generate_image")
|