Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
sanjayw
/
GPT4All
like
2
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
GPT4All
/
app.py
sanjayw
Duplicate from rishiraj/GPT4All
1cf1251
almost 3 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
185 Bytes
import
gradio
as
gr
from
nomic.gpt4all
import
GPT4All
m = GPT4All()
m.
open
()
def
chat
(
input
):
return
m.prompt(
input
)
gr.Interface(fn=chat, inputs=
"text"
, outputs=
"text"
).launch()