Spaces:
Sleeping
Sleeping
File size: 343 Bytes
22a3f24 dce77ea 22a3f24 dce77ea |
1 2 3 4 5 6 7 8 9 10 |
from langchain_community.llms import Ollama
import gradio as gr
def generate(user_input):
llm = Ollama(model="openchat")
response = llm.invoke(user_input)
return response
iface = gr.Interface(fn=generate, inputs="text", outputs="text", title="Ollama Chat", description="Chat with Ollama by entering your message.")
iface.launch() |