Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from llama_cpp import Llama
|
|
4 |
llm = Llama(model_path="model.gguf", n_ctx=8000, n_threads=2, chat_format="chatml")
|
5 |
|
6 |
def generate(message, history,temperature=0.3,max_tokens=512):
|
7 |
-
system_prompt = "You are
|
8 |
formatted_prompt = [{"role": "system", "content": system_prompt}]
|
9 |
for user_prompt, bot_response in history:
|
10 |
formatted_prompt.append({"role": "user", "content": user_prompt})
|
@@ -23,7 +23,7 @@ avatar_images=["user.png", "botnb.png"], bubble_full_width=False, show_label=Fal
|
|
23 |
iface = gr.ChatInterface(fn=generate, chatbot=mychatbot, retry_btn=None, undo_btn=None)
|
24 |
|
25 |
with gr.Blocks() as demo:
|
26 |
-
gr.HTML("<center><h1>ArchBeagle
|
27 |
iface.render()
|
28 |
|
29 |
demo.queue().launch(show_api=False, server_name="0.0.0.0")
|
|
|
4 |
llm = Llama(model_path="model.gguf", n_ctx=8000, n_threads=2, chat_format="chatml")
|
5 |
|
6 |
def generate(message, history,temperature=0.3,max_tokens=512):
|
7 |
+
system_prompt = "You are ArchBeagle, a superintelligent AI assistantYou must think step by step like a human but in a smarter way. Provide precise and concise answers. Your name is ArchBeagle 7000, you come from the future, and you are a disruptive AI with innovative and creative ideas!"
|
8 |
formatted_prompt = [{"role": "system", "content": system_prompt}]
|
9 |
for user_prompt, bot_response in history:
|
10 |
formatted_prompt.append({"role": "user", "content": user_prompt})
|
|
|
23 |
iface = gr.ChatInterface(fn=generate, chatbot=mychatbot, retry_btn=None, undo_btn=None)
|
24 |
|
25 |
with gr.Blocks() as demo:
|
26 |
+
gr.HTML("<center><h1>ArchBeagle By Maxime Labonne GGUF Quantized(q_5_k_m) </h1></center>")
|
27 |
iface.render()
|
28 |
|
29 |
demo.queue().launch(show_api=False, server_name="0.0.0.0")
|