Native_Bot / app.py
MD1998's picture
test_1
2bf87ab verified
raw
history blame
298 Bytes
import gradio as gr
from langchain_community.llms import CTransformers
llm = CTransformers(model="TheBloke/Llama-2-7b-Chat-GGUF", model_file="llama-2-7b-chat.q4_K_M.gguf"')
def greet(prompt):
return llm(prompt)
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()