Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
dipesh
/
gpt4all
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
gpt4all
/
app.py
dipesh
Update app.py
ed4a612
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
221 Bytes
import
gradio
as
gr
from
nomic.gpt4all
import
GPT4All
m = GPT4All()
m.
open
()
def
greet
(
name
):
ans = m.prompt(name)
return
ans
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()