feng2022 commited on
Commit
2a45a43
1 Parent(s): 0b16ab8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
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
- gr.outputs.Image(type='numpy', label='Output'),
98
- title=TITLE,
99
- description=DESCRIPTION,
100
- article=ARTICLE,
101
- theme=args.theme,
102
- allow_flagging=args.allow_flagging,
103
- live=args.live,
 
 
 
 
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__':