File size: 221 Bytes
a916588
 
 
ed4a612
 
 
a916588
ed4a612
a916588
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
from nomic.gpt4all import GPT4All

m = GPT4All()
m.open()

def greet(name):
    
    ans = m.prompt(name)
    return ans



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