File size: 185 Bytes
c472142
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import gradio as gr
from nomic.gpt4all import GPT4All

m = GPT4All()
m.open()

def chat(input):
    return m.prompt(input)

gr.Interface(fn=chat, inputs="text", outputs="text").launch()