interface opts

This commit is contained in:
Ali Abid 2020-06-11 11:25:38 -07:00
parent 96d35c5d47
commit eaf18ff388
2 changed files with 14 additions and 3 deletions

View File

@ -6,6 +6,12 @@ def upper(sentence, sentence2):
gr.Interface(upper,
["textbox", "textbox"],
["textbox", "textbox"],
[
"textbox",
gr.inputs.Textbox(lines=3, placeholder="hello")
],
[
"textbox",
gr.outputs.Textbox(lines=3, placeholder="hello")
],
live=True).launch()

View File

@ -11,4 +11,9 @@ def flip2(image):
return np.fliplr(image), time() - start
gr.Interface([flip, flip2], "imagein", ["image", "textbox"]).launch()
gr.Interface([flip, flip2],
"imagein",
[
"image",
gr.outputs.Textbox(lines=1)
]).launch()