aifeifei798 commited on
Commit
e19cee7
·
verified ·
1 Parent(s): 93c0f46

Upload feifeiui.py

Browse files
Files changed (1) hide show
  1. feifeiui/feifeiui.py +6 -2
feifeiui/feifeiui.py CHANGED
@@ -105,9 +105,13 @@ def create_ui():
105
  florence_btn = gr.Button(value="Florence")
106
 
107
  output_text = gr.Textbox(label="Output Text",
 
 
 
 
 
108
  show_label=False,
109
  container=False)
110
-
111
  output_img = gr.Image(label="Input Picture",
112
  interactive=False,
113
  show_label=False)
@@ -143,7 +147,7 @@ def create_ui():
143
  florence_btn.click(
144
  fn=feifeiflorence, # Function to run when the button is clicked
145
  inputs=[input_img], # Input components for the function
146
- outputs=[output_text,
147
  output_img], # Output component for the function
148
  )
149
  return FeiFei
 
105
  florence_btn = gr.Button(value="Florence")
106
 
107
  output_text = gr.Textbox(label="Output Text",
108
+ max_lines=12,
109
+ show_label=False,
110
+ container=False)
111
+ output_size = gr.Textbox(label="Output size",
112
+ max_lines=1,
113
  show_label=False,
114
  container=False)
 
115
  output_img = gr.Image(label="Input Picture",
116
  interactive=False,
117
  show_label=False)
 
147
  florence_btn.click(
148
  fn=feifeiflorence, # Function to run when the button is clicked
149
  inputs=[input_img], # Input components for the function
150
+ outputs=[output_text, output_size,
151
  output_img], # Output component for the function
152
  )
153
  return FeiFei