Spaces:
Runtime error
Runtime error
Download app.py from bengilbert/ImgSecTimeSformers: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/bengilbert/ImgSecTimeSformers/resolve/main/app.py
- Command line
-
hf download hf://spaces/bengilbert/ImgSecTimeSformers/app.py
-
curl -L -o app.py https://huggingface.co/spaces/bengilbert/ImgSecTimeSformers/resolve/main/app.py
317 Bytes
| import gradio as gr | |
| from tformers import tformers_function # make sure tformers.py is in the same directory or in the Python path | |
| # Create a Gradio Interface for the tformers function | |
| tformers_iface = gr.Interface(fn=tformers_function, inputs="image", outputs="text") | |
| # Launch the interface | |
| tformers_iface.launch() |