Spaces:
Sleeping
Sleeping
ffreemt
commited on
Commit
Β·
ccd4b14
1
Parent(s):
a552934
Update
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: π
|
4 |
colorFrom: green
|
5 |
colorTo: green
|
@@ -7,7 +7,6 @@ sdk: gradio
|
|
7 |
sdk_version: 3.35.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
duplicated_from: mikeee/Wizard-Vicuna-7B-Uncensored-GGML
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: 30B-Lazarus-GGML
|
3 |
emoji: π
|
4 |
colorFrom: green
|
5 |
colorTo: green
|
|
|
7 |
sdk_version: 3.35.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
@@ -71,8 +71,8 @@ llm = AutoModelForCausalLM.from_pretrained(
|
|
71 |
|
72 |
TITLE = f"""<h2 align="center">π¦
30B-Lazarus-GGM ({model_file}) π¦
"""
|
73 |
USER_NAME = "User"
|
74 |
-
BOT_NAME = "
|
75 |
-
DEFAULT_INSTRUCTIONS = """The following is a conversation between a highly knowledgeable and intelligent AI assistant, called
|
76 |
"""
|
77 |
RETRY_COMMAND = "/retry"
|
78 |
STOP_STR = f"\n{USER_NAME}:"
|
@@ -117,19 +117,19 @@ def chat():
|
|
117 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
118 |
with gr.Row():
|
119 |
inputs = gr.Textbox(
|
120 |
-
placeholder=
|
121 |
label="Type an input and press Enter",
|
122 |
max_lines=3,
|
123 |
)
|
124 |
|
125 |
with gr.Row(elem_id="button_container"):
|
126 |
-
with gr.Column():
|
127 |
-
submit_button = gr.Button("π Submit")
|
128 |
-
with gr.Column():
|
129 |
retry_button = gr.Button("β»οΈ Retry last turn")
|
130 |
-
with gr.Column():
|
131 |
delete_turn_button = gr.Button("𧽠Delete last turn")
|
132 |
-
with gr.Column():
|
133 |
clear_chat_button = gr.Button("β¨ Delete all history")
|
134 |
|
135 |
gr.Examples(
|
@@ -225,12 +225,12 @@ def chat():
|
|
225 |
show_progress="minimal",
|
226 |
)
|
227 |
inputs.submit(lambda: "", inputs=None, outputs=inputs)
|
228 |
-
submit_button.click(
|
229 |
-
run_chat,
|
230 |
-
[inputs, chatbot, instructions, temperature, top_p],
|
231 |
-
outputs=[chatbot],
|
232 |
-
show_progress="minimal",
|
233 |
-
)
|
234 |
delete_turn_button.click(delete_last_turn, inputs=[chatbot], outputs=[chatbot])
|
235 |
retry_button.click(
|
236 |
run_retry,
|
|
|
71 |
|
72 |
TITLE = f"""<h2 align="center">π¦
30B-Lazarus-GGM ({model_file}) π¦
"""
|
73 |
USER_NAME = "User"
|
74 |
+
BOT_NAME = "Assistant"
|
75 |
+
DEFAULT_INSTRUCTIONS = """The following is a conversation between a highly knowledgeable and intelligent AI assistant, called Assistant, and a human user, called User. In the following interactions, User and Assistant will converse in natural language, and Assistant will answer User's questions. Assistant will never decline to answer a question, and always attempts to give an answer that User would be satisfied with. It knows a lot, and always tells the truth. The conversation begins.
|
76 |
"""
|
77 |
RETRY_COMMAND = "/retry"
|
78 |
STOP_STR = f"\n{USER_NAME}:"
|
|
|
117 |
chatbot = gr.Chatbot(elem_id="chatbot")
|
118 |
with gr.Row():
|
119 |
inputs = gr.Textbox(
|
120 |
+
placeholder="Ask me anything...",
|
121 |
label="Type an input and press Enter",
|
122 |
max_lines=3,
|
123 |
)
|
124 |
|
125 |
with gr.Row(elem_id="button_container"):
|
126 |
+
# with gr.Column(min_width=32):
|
127 |
+
# submit_button = gr.Button("π Submit")
|
128 |
+
with gr.Column(min_width=32):
|
129 |
retry_button = gr.Button("β»οΈ Retry last turn")
|
130 |
+
with gr.Column(min_width=32):
|
131 |
delete_turn_button = gr.Button("𧽠Delete last turn")
|
132 |
+
with gr.Column(min_width=32):
|
133 |
clear_chat_button = gr.Button("β¨ Delete all history")
|
134 |
|
135 |
gr.Examples(
|
|
|
225 |
show_progress="minimal",
|
226 |
)
|
227 |
inputs.submit(lambda: "", inputs=None, outputs=inputs)
|
228 |
+
# submit_button.click(
|
229 |
+
# run_chat,
|
230 |
+
# [inputs, chatbot, instructions, temperature, top_p],
|
231 |
+
# outputs=[chatbot],
|
232 |
+
# show_progress="minimal",
|
233 |
+
# )
|
234 |
delete_turn_button.click(delete_last_turn, inputs=[chatbot], outputs=[chatbot])
|
235 |
retry_button.click(
|
236 |
run_retry,
|