Spaces:
Running
on
Zero
Running
on
Zero
John Ho
commited on
Commit
Β·
a2b5338
1
Parent(s):
38a6470
changed image type to pil
Browse files
app.py
CHANGED
|
@@ -22,7 +22,10 @@ def point(im: Image.Image, object_name: str):
|
|
| 22 |
|
| 23 |
demo = gr.Interface(
|
| 24 |
fn=point,
|
| 25 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
| 26 |
outputs=gr.Textbox(label="Output Text"),
|
| 27 |
)
|
| 28 |
demo.launch()
|
|
|
|
| 22 |
|
| 23 |
demo = gr.Interface(
|
| 24 |
fn=point,
|
| 25 |
+
inputs=[
|
| 26 |
+
gr.Image(label="Input Image", type="pil"),
|
| 27 |
+
gr.Textbox(label="Object to Detect"),
|
| 28 |
+
],
|
| 29 |
outputs=gr.Textbox(label="Output Text"),
|
| 30 |
)
|
| 31 |
demo.launch()
|