gradio-space / app.py
cbensimon's picture
cbensimon HF Staff
Update app.py
c746a41
raw
history blame
409 Bytes
import os
import sys
import gradio as gr
from gradio.inputs import Textbox
from gradio.outputs import Textbox as TextOutput
def process(text):
print('Hello')
sys.stdout.flush()
return f'Hi {text} (API_KEY: {os.environ.get("API_KEY")})'
interface = gr.Interface(
fn=process,
inputs=[Textbox()],
outputs=[TextOutput()],
theme='huggingface',
)
interface.launch(auth=[('a', 'b')])