Monster commited on
Commit
22e1d30
1 Parent(s): 5d41f85
Files changed (1) hide show
  1. main.py +10 -0
main.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()