test / app.py
elbhorgo's picture
Update app.py
1819e08 verified
Raw History Blame Contribute Delete
399 Bytes
import gradio as gr
import os
read_key = os.getenv("HF_TOKEN")
usr=os.getenv("usr")
passwrd=os.getenv("password")
def auth_user(username,password):
if username==usr and password==passwrd:
return True
else:
return False
with gr.Blocks() as app:
gr.Textbox("my text")
#inc = gr.load("elbhorgo/marketing",hf_token=read_key, src="spaces")
app.launch(auth = auth_user)