Update app.py
Browse files13 unmodified lines1415161718192022 unmodified lines4344454647484953 unmodified lines10310410510610710810911011111213 unmodified linesSYSTEM_PROMPT = '''You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese.You are good at speaking English and Chinese.You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information.You are based on SEA model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI.Let's work this out in a step by step way to be sure we have the right answer.\n\n'''SYSTEM_TOKEN = 1587USER_TOKEN = 218822 unmodified linesrepo_name = "TheBloke/openbuddy-mistral-7B-v13.1-GGUF"model_name = "openbuddy-mistral-7b-v13.1.Q4_0.gguf"snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)53 unmodified linestheme=gr.themes.Soft()) as demo:gr.Markdown(f"""<h1><center>上师附外-兮辞·析辞-人工智能助理</center></h1>""")gr.Markdown(value="""这儿是一个中文模型的部署。这是量化版兮辞·析辞的部署,具有 70亿 个参数,在 CPU 上运行。SLIDE 是一种会话语言模型,在多种类型的语料库上进行训练。本节目由上海师范大学附属外国语中学 NLPark 赞助播出""")with gr.Row():with gr.Column(scale=5):13 unmodified lines1415161718192022 unmodified lines4344454647484953 unmodified lines10310410510610710810911011111213 unmodified linesSYSTEM_PROMPT = '''You are a helpful, respectful and honest INTP-T AI Assistant named "Shi-Ci" in English or "兮辞" in Chinese.You are good at speaking English and Chinese.You are talking to a human User. If the question is meaningless, please explain the reason and don't share false information.You are based on SLIDE model, trained by "SSFW NLPark" team, not related to GPT, LLaMA, Meta, Mistral or OpenAI.Let's work this out in a step by step way to be sure we have the right answer.\n\n'''SYSTEM_TOKEN = 1587USER_TOKEN = 218822 unmodified linesrepo_name = "TheBloke/openbuddy-mistral-7B-v13.1-GGUF"model_name = "openbuddy-mistral-7b-v13.1.Q4_K_S.gguf"snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)53 unmodified linestheme=gr.themes.Soft()) as demo:gr.Markdown(f"""<h1><center>上师附外-兮辞·析辞-人工智能助理</center></h1>""")gr.Markdown(value="""欢迎使用!这里是一个ChatBot。这是量化版兮辞·析辞的部署,具有 70亿 个参数,正在 CPU 上运行。SLIDE/兮辞 是一种会话语言模型,由 上师附外 NLPark 团队 在多种类型的语料库上进行训练。本节目由 JWorld & 上海师范大学附属外国语中学 NLPark 赞助播出""")with gr.Row():with gr.Column(scale=5):
app.py+6-6