Create app.py
Browse files12345678910111213141516import gradio as grfrom llama_cpp import Llama
# Загружаем модельllm = Llama(model_path="mini_llama.gguf")
def chat(message, history): output = llm(message, max_tokens=500) return output['choices'][0]['text']
# Запускаем интерфейсgr.ChatInterface( fn=chat, title="Mini Llama", description="Чат с моделью").launch(share=True)app.pyAdded+16