Spaces:
Runtime error
Runtime error
import os | |
import gradio as gr | |
API_KEY = os.getenv('HF_SPACE_API_KEY') | |
GRADIO_USERNAME=os.getenv('GRADIO_USERNAME') | |
GRADIO_PASSWORD=os.getenv('GRADIO_PASSWORD') | |
with gr.Blocks(css="body{background-color:red !important}") as demo: | |
iface = gr.Interface.load("spaces/myshop-capsule/gradio-myshop-backend-algos-staging", api_key=API_KEY) | |
demo.launch(auth = (GRADIO_USERNAME, GRADIO_PASSWORD), auth_message='Enter username and password') |