Spaces:
Runtime error
Runtime error
File size: 597 Bytes
22e1d30 c97127b 22e1d30 c97127b 22e1d30 7c57a39 22e1d30 b0b708d |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from llama_cpp import Llama
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="LLukas22/gpt4all-lora-quantized-ggjt", filename="ggjt-model.bin", local_dir=".")
llm = Llama(model_path="./ggjt-model.bin")
def chat(input):
return llm(input)['text']
gr.Interface(fn=chat, inputs="text", outputs="text", description="Assistant-style large language model with ~800k GPT-3.5-Turbo Generations", examples=[['What is a three word topic describing the following keywords: baseball, football, soccer'],['List 10 dogs.'],['Reverse a string in python.']]).launch() |