Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,9 @@ def segment_image(input_image, text_input):
|
|
82 |
|
83 |
# Create Gradio components
|
84 |
input_image = gr.inputs.Image()
|
85 |
-
text_input = gr.inputs.Textbox(label=
|
86 |
output_images = gr.outputs.JSON()
|
87 |
|
88 |
# Create a Gradio interface
|
89 |
gr.Interface(fn=segment_image, inputs=[input_image, text_input], outputs=output_images).launch()
|
|
|
|
82 |
|
83 |
# Create Gradio components
|
84 |
input_image = gr.inputs.Image()
|
85 |
+
text_input = gr.inputs.Textbox(label="Text Input") # Use Textbox with a label
|
86 |
output_images = gr.outputs.JSON()
|
87 |
|
88 |
# Create a Gradio interface
|
89 |
gr.Interface(fn=segment_image, inputs=[input_image, text_input], outputs=output_images).launch()
|
90 |
+
|