Spaces:
Runtime error
Runtime error
simplify Interface args
Browse files
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 |
-
|
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()
|