Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
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,
|