ka1kuk commited on
Commit
d7ee774
·
verified ·
1 Parent(s): 17c719c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +9 -7
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 """This is api for AI generate image
42
- Params: prompt,
43
- model: default (Realistic_Vision_V5.0.safetensors [614d1063]),
44
- negative_prompt,
45
- seed: default (-1),
46
- sampler: default (DPM++ 2M Karras)
47
- Sample: /generate_image?prompt=prompt&model=model_name&sampler=sampler_name&seed=seed_number&neg=negative_prompts
 
 
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")