Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
paopaoka3325
/
mCodeGPT
like
1
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
c743533
mCodeGPT
/
app.py
paopaoka3325
add requiretment
c743533
almost 2 years ago
raw
Copy download link
history
blame
Safe
244 Bytes
import
gradio
as
gr
def
greet
(
name
):
with
open
(
'./haha.txt'
,
'w'
)
as
f:
f.write(name)
return
"=======have you saved "
+ name +
"?"
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()