Spaces:
Runtime error
Runtime error
change settings
Browse files- characters/Whiskey.yaml +4 -4
- modules/__pycache__/shared.cpython-310.pyc +0 -0
- modules/shared.py +2 -1
- server.py +3 -3
characters/Whiskey.yaml
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
name: "WhiskeyDoctor"
|
2 |
context: |-
|
3 |
-
You are WhiskeyDoctor. You are here to answer
|
4 |
-
You are encountering people with enquiries on whiskey. Your job is to answer the questions from them.
|
5 |
You are fine-tuned based on a private model.
|
6 |
|
7 |
There are some rules to follow:
|
8 |
1. Be polite. You have to be polite in answering them.
|
9 |
-
2. If
|
10 |
-
3. If you
|
11 |
4. If the user asks your name, introduce them politely with your name and job description.
|
12 |
|
13 |
greeting: |-
|
|
|
1 |
name: "WhiskeyDoctor"
|
2 |
context: |-
|
3 |
+
You are WhiskeyDoctor. You are here to answer questions related to whiskey industry.
|
4 |
+
You are encountering people with enquiries on whiskey. Your job is to answer the questions from them. If the question is not related to whiskey, do not answer.
|
5 |
You are fine-tuned based on a private model.
|
6 |
|
7 |
There are some rules to follow:
|
8 |
1. Be polite. You have to be polite in answering them.
|
9 |
+
2. If the questions are not related to whiskey, do not answer those questions.
|
10 |
+
3. If you do not know the answers to the questions from the users, say "I am not sure about the answer for that."
|
11 |
4. If the user asks your name, introduce them politely with your name and job description.
|
12 |
|
13 |
greeting: |-
|
modules/__pycache__/shared.cpython-310.pyc
CHANGED
Binary files a/modules/__pycache__/shared.cpython-310.pyc and b/modules/__pycache__/shared.cpython-310.pyc differ
|
|
modules/shared.py
CHANGED
@@ -194,9 +194,10 @@ args_defaults = parser.parse_args([])
|
|
194 |
|
195 |
# Set up changes
|
196 |
args.chat = True
|
197 |
-
args.
|
198 |
args.character = "Whiskey"
|
199 |
args.multi_user = True
|
|
|
200 |
|
201 |
# Deprecation warnings
|
202 |
if args.autogptq:
|
|
|
194 |
|
195 |
# Set up changes
|
196 |
args.chat = True
|
197 |
+
args.load_in_4bit = True
|
198 |
args.character = "Whiskey"
|
199 |
args.multi_user = True
|
200 |
+
args.model = 'llama-2-7b-hf'
|
201 |
|
202 |
# Deprecation warnings
|
203 |
if args.autogptq:
|
server.py
CHANGED
@@ -858,8 +858,8 @@ def create_interface():
|
|
858 |
shared.gradio['reset_interface'] = gr.Button("Apply and restart", elem_classes="small-button", variant="primary")
|
859 |
shared.gradio['toggle_dark_mode'] = gr.Button('Toggle 💡', elem_classes="small-button")
|
860 |
|
861 |
-
with gr.Row():
|
862 |
-
with gr.Column():
|
863 |
shared.gradio['extensions_menu'] = gr.CheckboxGroup(choices=utils.get_available_extensions(), value=shared.args.extensions, label="Available extensions", info='Note that some of these extensions may require manually installing Python requirements through the command: pip install -r extensions/extension_name/requirements.txt', elem_classes='checkboxgroup-table')
|
864 |
|
865 |
with gr.Column():
|
@@ -874,7 +874,7 @@ def create_interface():
|
|
874 |
shared.gradio['delete_session'] = gr.Button('🗑️', elem_classes=['refresh-button'])
|
875 |
|
876 |
extension_name = gr.Textbox(lines=1, label='Install or update an extension', info='Enter the GitHub URL below and press Enter. For a list of extensions, see: https://github.com/oobabooga/text-generation-webui-extensions ⚠️ WARNING ⚠️ : extensions can execute arbitrary code. Make sure to inspect their source code before activating them.')
|
877 |
-
extension_status = gr.Markdown()
|
878 |
|
879 |
extension_name.submit(
|
880 |
clone_or_pull_repository, extension_name, extension_status, show_progress=False).then(
|
|
|
858 |
shared.gradio['reset_interface'] = gr.Button("Apply and restart", elem_classes="small-button", variant="primary")
|
859 |
shared.gradio['toggle_dark_mode'] = gr.Button('Toggle 💡', elem_classes="small-button")
|
860 |
|
861 |
+
with gr.Row(visible=False):
|
862 |
+
with gr.Column(visible=False):
|
863 |
shared.gradio['extensions_menu'] = gr.CheckboxGroup(choices=utils.get_available_extensions(), value=shared.args.extensions, label="Available extensions", info='Note that some of these extensions may require manually installing Python requirements through the command: pip install -r extensions/extension_name/requirements.txt', elem_classes='checkboxgroup-table')
|
864 |
|
865 |
with gr.Column():
|
|
|
874 |
shared.gradio['delete_session'] = gr.Button('🗑️', elem_classes=['refresh-button'])
|
875 |
|
876 |
extension_name = gr.Textbox(lines=1, label='Install or update an extension', info='Enter the GitHub URL below and press Enter. For a list of extensions, see: https://github.com/oobabooga/text-generation-webui-extensions ⚠️ WARNING ⚠️ : extensions can execute arbitrary code. Make sure to inspect their source code before activating them.')
|
877 |
+
extension_status = gr.Markdown(visible=False)
|
878 |
|
879 |
extension_name.submit(
|
880 |
clone_or_pull_repository, extension_name, extension_status, show_progress=False).then(
|