Spaces:
Runtime error
Runtime error
File size: 435 Bytes
3829f26 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from nomic.gpt4all import GPT4All
m = GPT4All()
m.open()
def chat(input):
return m.prompt(input)
demo=gr.Interface(fn=chat,
inputs="text",
outputs="text",
examples=[['write me a story about a lonely computer']],
title="GPT4ALL",
description="Check https://github.com/nomic-ai/gpt4all"
)
demo.launch() |