gpt4all / app.py
dipesh's picture
Update app.py
ed4a612
raw
history blame contribute delete
221 Bytes
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()