minh132 commited on
Commit
4afdd80
1 Parent(s): 8953a60

add miner uid

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -16,6 +16,7 @@ def generate_image(
16
  prompt,
17
  key,
18
  model_name,
 
19
  seed,
20
  width,
21
  height,
@@ -26,6 +27,7 @@ def generate_image(
26
  "key": key,
27
  "model_name": model_name,
28
  "prompt": prompt,
 
29
  "seed": seed,
30
  "pipeline_params": {
31
  "width": width,
@@ -51,6 +53,7 @@ iface = gr.Interface(
51
  gr.Textbox(label="Prompt", value=""),
52
  gr.Textbox(label="API Key", value=""),
53
  gr.Dropdown(choices=["RealisticVision", "SDXLTurbo"], value="SDXLTurbo"),
 
54
  gr.Number(label="Seed", value=0),
55
  gr.Slider(label="Width", minimum=0, maximum=2048, value=512, step=16),
56
  gr.Slider(label="Height", minimum=0, maximum=2048, value=512, step=16),
 
16
  prompt,
17
  key,
18
  model_name,
19
+ specify_uid,
20
  seed,
21
  width,
22
  height,
 
27
  "key": key,
28
  "model_name": model_name,
29
  "prompt": prompt,
30
+ "miner_uid": specify_uid,
31
  "seed": seed,
32
  "pipeline_params": {
33
  "width": width,
 
53
  gr.Textbox(label="Prompt", value=""),
54
  gr.Textbox(label="API Key", value=""),
55
  gr.Dropdown(choices=["RealisticVision", "SDXLTurbo"], value="SDXLTurbo"),
56
+ gr.Number(label="Specify Miner UID", value=-1),
57
  gr.Number(label="Seed", value=0),
58
  gr.Slider(label="Width", minimum=0, maximum=2048, value=512, step=16),
59
  gr.Slider(label="Height", minimum=0, maximum=2048, value=512, step=16),