rishiraj commited on
Commit
c472142
1 Parent(s): bd1cbfe

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -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()