Files changed (1) hide show
  1. app.py +21 -14
app.py CHANGED
@@ -1,14 +1,21 @@
1
- cog predict r8.im/xarty8932/dream@sha256:5e3c45aa9c9896f86634175309490225e5a379a6a81c39abbf55eab2cd16b657 \
2
- -i 'width=1024' \
3
- -i 'height=1024' \
4
- -i $'prompt="realstic Prompt: \\"A detailed portrait of a middle-aged man with a rugged face, wearing a leather jacket. He has piercing blue eyes and a determined expression. The background is a windswept desert landscape.\\" - @Gary Makinson (fast)\\n"' \
5
- -i 'refine="no_refiner"' \
6
- -i 'scheduler="K_EULER"' \
7
- -i 'lora_scale=0.6' \
8
- -i 'num_outputs=1' \
9
- -i 'guidance_scale=7.5' \
10
- -i 'apply_watermark=false' \
11
- -i 'high_noise_frac=0.8' \
12
- -i 'negative_prompt=""' \
13
- -i 'prompt_strength=0.8' \
14
- -i 'num_inference_steps=50'
 
 
 
 
 
 
 
 
1
+ docker run -d -p 5000:5000 --gpus=all r8.im/xarty8932/dream@sha256:5e3c45aa9c9896f86634175309490225e5a379a6a81c39abbf55eab2cd16b657
2
+ curl -s -X POST \
3
+ -H "Content-Type: application/json" \
4
+ -d $'{
5
+ "input": {
6
+ "width": 1024,
7
+ "height": 1024,
8
+ "prompt": "An astronaut riding a rainbow unicorn",
9
+ "refine": "no_refiner",
10
+ "scheduler": "K_EULER",
11
+ "lora_scale": 0.6,
12
+ "num_outputs": 1,
13
+ "guidance_scale": 7.5,
14
+ "apply_watermark": true,
15
+ "high_noise_frac": 0.8,
16
+ "negative_prompt": "",
17
+ "prompt_strength": 0.8,
18
+ "num_inference_steps": 50
19
+ }
20
+ }' \
21
+ http://localhost:5000/predictions