aymonc's picture
Update app.py
31363af
raw
history blame contribute delete
481 Bytes
import gradio as gr
import os
hf_token = os.environ['GRADIO_API_KEY']
USERNAME = os.environ['USERNAME']
PASSWORD = os.environ['PASSWORD']
#HIDE THIS API KEY WHEN MADE PUBLIC*****************************************************************
demo = gr.load(name="PharmaAI/ABPIChat1", hf_token=hf_token, src="spaces")
#HIDE THESE AS SECRETS WHEN MADE PUBLIC*****************************************************************
demo.launch(auth=(USERNAME, PASSWORD), show_api=False)