File size: 410 Bytes
c2457bd
bb0f85d
7da859c
 
c2457bd
 
 
 
16264c3
50b8f6e
1
2
3
4
5
6
7
8
9
10
import gradio as gr
import os
HF_TEST_USER_NAME = os.environ["HF_TEST_USER_NAME"]
HF_PASS = os.environ["HF_PASS"]
def greet(name):
    return "Hello " + name + "!!"

demo = gr.Interface(fn=greet, inputs="text", outputs="text")
demo.launch(auth=(HF_TEST_USER_NAME, HF_PASS), ssr_mode=False)
# Running on local URL:  http://0.0.0.0:7860, with SSR ⚡ (experimental, to disable set `ssr_mode=False` in `launch()`)