Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
rishiraj
/
GPT4All
like
13
Runtime error
App
Files
Files
Community
3
rishiraj
commited on
Mar 31, 2023
Commit
c472142
•
1 Parent(s):
bd1cbfe
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+10
-0
app.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()