feng2022 commited on
Commit
2ed7e26
1 Parent(s): ae8b571

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -80,20 +80,20 @@ def main():
80
  #result = subprocess.check_output(['nvidia-smi'])
81
  args = parse_args()
82
  iface = gr.Interface(
83
- fn=image_create,
84
- [
85
- gr.inputs.Number(default=0, label='Seed'),
86
- gr.inputs.Slider(
87
- 0, 2, step=0.05, default=0.7, label='Truncation psi'),
88
- ],
89
- gr.outputs.Image(type='numpy', label='Output'),
90
- title=TITLE,
91
- description=DESCRIPTION,
92
- article=ARTICLE,
93
- theme=args.theme,
94
- allow_flagging=args.allow_flagging,
95
- live=args.live,
96
- )
97
 
98
  iface.launch(
99
  enable_queue=args.enable_queue,
 
80
  #result = subprocess.check_output(['nvidia-smi'])
81
  args = parse_args()
82
  iface = gr.Interface(
83
+ fn=image_create,
84
+ [
85
+ gr.inputs.Number(default=0, label='Seed'),
86
+ gr.inputs.Slider(
87
+ 0, 2, step=0.05, default=0.7, label='Truncation psi'),
88
+ ],
89
+ gr.outputs.Image(type='numpy', label='Output'),
90
+ title=TITLE,
91
+ description=DESCRIPTION,
92
+ article=ARTICLE,
93
+ theme=args.theme,
94
+ allow_flagging=args.allow_flagging,
95
+ live=args.live,
96
+ )
97
 
98
  iface.launch(
99
  enable_queue=args.enable_queue,