Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Monster
/
GPT4ALL
like
73
Running
App
Files
Files
Community
2
5198c7d
GPT4ALL
/
main.py
Monster
main.py
22e1d30
over 1 year ago
raw
Copy download link
history
blame
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()