Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
fengtc
/
chat
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
061e42b
chat
/
app.py
fengtc
Update app.py
061e42b
over 1 year ago
raw
Copy download link
history
blame
Safe
219 Bytes
import
gradio
as
gr
def
greet
(
name
):
return
"Hello "
+ name +
"!!"
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch(auth=[(
'webbrowser'
,
'webbrowserx'
), (
'webbrowser2'
,
'webbrowser2x'
)]))