Runtime error when Deploying this model into Spaces

#4
by hfsriks8 - opened

Runtime error
Traceback (most recent call last):
File "/home/user/app/app.py", line 3, in
gr.Interface.load("models/microsoft/kosmos-2-patch14-224").launch()
AttributeError: 'Dependency' object has no attribute 'launch'

This keeps happening to me, too πŸ˜‘

Hi, this doesn't look like a model issue but gradio. I never use gr.Interface.load("models/microsoft/kosmos-2-patch14-224").launch(), but there is a Space

https://huggingface.co/spaces/ydshieh/Kosmos-2/blob/main/app.py

written in another way.

Or, you can report the issue on Gradio github.

This certainly isn't issue with Kosmos but with Gradio
even in their official documentation, they have provided this method, but it doesn't work...

https://www.gradio.app/guides/controlling-layout

Sign up or log in to comment