Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Monster
/
GPT4ALL
like
73
Running
App
Files
Files
Community
2
Monster
commited on
Apr 5, 2023
Commit
22e1d30
•
1 Parent(s):
5d41f85
main.py
Browse files
Files changed (1)
hide
show
main.py
+10
-0
main.py
ADDED
Viewed
@@ -0,0 +1,10 @@
1
+
import gradio as gr
2
+
from nomic.gpt4all import GPT4All
3
+
4
+
m = GPT4All()
5
+
m.open()
6
+
7
+
def chat(input):
8
+
return m.prompt(input)
9
+
10
+
gr.Interface(fn=chat, inputs="text", outputs="text").launch()