marinap commited on
Commit
fc007e5
1 Parent(s): 242b67f

simplify Interface args

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,9 +61,9 @@ def find_topk(text):
61
 
62
 
63
  #demo = gr.Interface(find_topk, inputs = 'text', outputs = 'image')
64
- demo = gr.Interface(find_topk,
65
  inputs = gr.Textbox(label = 'Enter your prompt', lines = 2),
66
  outputs = gr.Gallery(),
67
- theme = gr.themes.Glass())
68
  if __name__ == "__main__":
69
  demo.launch()
 
61
 
62
 
63
  #demo = gr.Interface(find_topk, inputs = 'text', outputs = 'image')
64
+ demo = gr.Interface(fn = find_topk,
65
  inputs = gr.Textbox(label = 'Enter your prompt', lines = 2),
66
  outputs = gr.Gallery(),
67
+ )
68
  if __name__ == "__main__":
69
  demo.launch()