Download app.py from tejani/Text_To_Image_Conversion: direct link, hf CLI and curl.
- Browser
- Download file 202 Bytes
-
https://huggingface.co/spaces/tejani/Text_To_Image_Conversion/resolve/main/app.py
- Command line
-
hf download hf://spaces/tejani/Text_To_Image_Conversion/app.py
-
curl -L -o app.py https://huggingface.co/spaces/tejani/Text_To_Image_Conversion/resolve/main/app.py
202 Bytes
| import gradio as gr | |
| import os | |
| # Load the API token from the environment variable | |
| hf_token = os.getenv("HF_TOKEN") | |
| interface = gr.load("models/ZB-Tech/Text-to-Image", token=hf_token) | |
| interface.launch() |