tejani's picture
Update app.py
6cae56a verified
raw
history blame contribute delete
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()