CoolFace
Apppublic

a9081212071/mythomax-sillytavern

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
2 commits on main
22f6ee21y ago

import gradio as gr from llama_cpp import Llama llm = Llama(model_path="models/mythomax-l2-13b.gguf") def generate(prompt): out = llm(prompt=prompt, max_tokens=256, temperature=0.9) return out['choices'][0]['text'] with gr.Interface( fn=generate, inputs=gr.Textbox(lines=3, placeholder="請輸入中文小說開頭..."), outputs="textbox", title="MythoMax‑L2 中文小說生成" ) as demo: demo.launch()

a9081212071
9cde8aa1y ago

initial commit

a9081212071