ffreemt commited on
Commit
ccd4b14
β€’
1 Parent(s): a552934
Files changed (2) hide show
  1. README.md +1 -2
  2. app.py +14 -14
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: TheBloke/30B-Lazarus-GGML
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 = "Falcon"
75
- DEFAULT_INSTRUCTIONS = """The following is a conversation between a highly knowledgeable and intelligent AI assistant, called Falcon, and a human user, called User. In the following interactions, User and Falcon will converse in natural language, and Falcon will answer User's questions. Falcon was built to be respectful, polite and inclusive. Falcon was built by the Technology Innovation Institute in Abu Dhabi. Falcon 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,19 +117,19 @@ def chat():
117
  chatbot = gr.Chatbot(elem_id="chatbot")
118
  with gr.Row():
119
  inputs = gr.Textbox(
120
- placeholder=f"Hello {BOT_NAME} !!",
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,