Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
paiguxia
/
try-phi-2
like
0
Runtime error
App
Files
Files
Community
main
try-phi-2
/
app.py
paiguxia
panic
4635dd8
10 months ago
raw
Copy download link
history
blame
contribute
delete
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()