justin-shopcapsule's picture
Update app.py
cb4439d
raw
history blame
438 Bytes
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')