Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ params = {
|
|
| 54 |
title = "Usage of FastSAM"
|
| 55 |
description = "Implementation of pre-trained fast-sam model for spaces."
|
| 56 |
|
| 57 |
-
demo = gr.Interface(inference,inputs=[gr.Image(
|
| 58 |
gr.Checkbox(True,label='Show All Annotations'),
|
| 59 |
gr.Textbox('',label='Provide the text prompt: '),],
|
| 60 |
outputs = [gr.Image(shape=(32,32),label='Output').style(width=128,height=128)],
|
|
|
|
| 54 |
title = "Usage of FastSAM"
|
| 55 |
description = "Implementation of pre-trained fast-sam model for spaces."
|
| 56 |
|
| 57 |
+
demo = gr.Interface(inference,inputs=[gr.Image(sources=['clipboard','upload']),
|
| 58 |
gr.Checkbox(True,label='Show All Annotations'),
|
| 59 |
gr.Textbox('',label='Provide the text prompt: '),],
|
| 60 |
outputs = [gr.Image(shape=(32,32),label='Output').style(width=128,height=128)],
|