Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
paiguxia
/
try-phi-2
like
0
Runtime error
App
Files
Files
Community
4635dd8
try-phi-2
/
app.py
paiguxia
panic
4635dd8
8 months ago
raw
Copy download link
history
blame
Safe
228 Bytes
import
gradio
as
gr
def
greet
(
name
):
result =
1
/
0
return
"Hello, welcome to "
+ name +
"!"
+ result
demo = gr.Interface(fn=greet, inputs=
"textbox"
, outputs=
"textbox"
)
if
__name__ ==
"__main__"
:
demo.launch()