Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
rishiraj
/
GPT4All
like
13
Runtime error
App
Files
Files
Community
3
main
GPT4All
/
app.py
rishiraj
Create app.py
c472142
over 1 year 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()