File size: 219 Bytes
22a3f24
 
 
 
129c921
22a3f24
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from langchain_community.llms import Ollama
import gradio as gr

def generate(name):
	llm = Ollama(model="openchat")

	response = llm.invoke(name)

	return response

iface = gr.ChatInterface(fn=generate)
iface.launch()