Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -94,19 +94,23 @@ def main():
|
|
94 |
img_out, _, _ = generator([latent])
|
95 |
imgs_arr = make_image(img_out)
|
96 |
iface = gr.Interface(
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
104 |
)
|
105 |
|
106 |
iface.launch(
|
107 |
-
enable_queue=args.enable_queue,
|
108 |
-
server_port=args.port,
|
109 |
-
share=args.share,
|
110 |
)
|
111 |
|
112 |
if __name__ == '__main__':
|
|
|
94 |
img_out, _, _ = generator([latent])
|
95 |
imgs_arr = make_image(img_out)
|
96 |
iface = gr.Interface(
|
97 |
+
fn=predict,
|
98 |
+
inputs='text',
|
99 |
+
outputs='text',
|
100 |
+
examples=['result']
|
101 |
+
#gr.outputs.Image(type='numpy', label='Output'),
|
102 |
+
#title=TITLE,
|
103 |
+
#description=DESCRIPTION,
|
104 |
+
#article=ARTICLE,
|
105 |
+
#theme=args.theme,
|
106 |
+
#allow_flagging=args.allow_flagging,
|
107 |
+
#live=args.live,
|
108 |
)
|
109 |
|
110 |
iface.launch(
|
111 |
+
#enable_queue=args.enable_queue,
|
112 |
+
#server_port=args.port,
|
113 |
+
#share=args.share,
|
114 |
)
|
115 |
|
116 |
if __name__ == '__main__':
|