BilalSardar commited on
Commit
3829f26
·
1 Parent(s): b0b6f00

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ demo=gr.Interface(fn=chat,
11
+ inputs="text",
12
+ outputs="text",
13
+ examples=[['write me a story about a lonely computer']],
14
+ title="GPT4ALL",
15
+ description="Check https://github.com/nomic-ai/gpt4all"
16
+ )
17
+
18
+ demo.launch()