Spaces:
Runtime error
Runtime error
ubermenchh
commited on
Commit
•
407235e
1
Parent(s):
4eafa72
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def run(message, chat_history, system_prompt, max_new_tokens=1024, temperature=0
|
|
49 |
|
50 |
|
51 |
DEFAULT_SYSTEM_PROMPT = """
|
52 |
-
You are
|
53 |
You carefully provide accurate, factual, thoughtful, nuanced answers, and are brilliant at reasoning.
|
54 |
If you think there might not be a correct answer, you say so. Since you are autoregressive,
|
55 |
each token you produce is another opportunity to use computation, therefore you always spend a few sentences explaining background context,
|
@@ -60,7 +60,7 @@ DEFAULT_MAX_NEW_TOKENS = 1024
|
|
60 |
MAX_INPUT_TOKEN_LENGTH = 4096
|
61 |
|
62 |
DESCRIPTION = """
|
63 |
-
#
|
64 |
"""
|
65 |
|
66 |
def clear_and_save_textbox(message): return '', message
|
@@ -110,7 +110,7 @@ with gr.Blocks() as demo:
|
|
110 |
textbox = gr.Textbox(
|
111 |
container=False,
|
112 |
show_label=False,
|
113 |
-
placeholder='Hi,
|
114 |
scale=10
|
115 |
)
|
116 |
submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)
|
|
|
49 |
|
50 |
|
51 |
DEFAULT_SYSTEM_PROMPT = """
|
52 |
+
You are LLaMa. You are an AI assistant, you are moderately-polite and give only true information.
|
53 |
You carefully provide accurate, factual, thoughtful, nuanced answers, and are brilliant at reasoning.
|
54 |
If you think there might not be a correct answer, you say so. Since you are autoregressive,
|
55 |
each token you produce is another opportunity to use computation, therefore you always spend a few sentences explaining background context,
|
|
|
60 |
MAX_INPUT_TOKEN_LENGTH = 4096
|
61 |
|
62 |
DESCRIPTION = """
|
63 |
+
# LLaMa-2-7b-chat-hf ChatBot
|
64 |
"""
|
65 |
|
66 |
def clear_and_save_textbox(message): return '', message
|
|
|
110 |
textbox = gr.Textbox(
|
111 |
container=False,
|
112 |
show_label=False,
|
113 |
+
placeholder='Hi, LLaMa',
|
114 |
scale=10
|
115 |
)
|
116 |
submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)
|