ubermenchh commited on
Commit
ae5a55c
·
1 Parent(s): 9aaa84f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 Zephyr. 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,7 +60,7 @@ DEFAULT_MAX_NEW_TOKENS = 1024
60
  MAX_INPUT_TOKEN_LENGTH = 4096
61
 
62
  DESCRIPTION = """
63
- # Zephyr-7b ChatBot
64
  """
65
 
66
  def clear_and_save_textbox(message): return '', message
@@ -101,16 +101,16 @@ def check_input_token_length(message, chat_history, system_prompt):
101
  if input_token_length > MAX_INPUT_TOKEN_LENGTH:
102
  raise gr.Error(f"The accumulated input is too long ({input_token_length} > {MAX_INPUT_TOKEN_LENGTH}). Clear your chat history and try again.")
103
 
104
- with gr.Blocks(theme='Taithrah/Minimal') as demo:
105
  gr.Markdown(DESCRIPTION)
106
 
107
  with gr.Group():
108
- chatbot = gr.Chatbot(label='Playground')
109
  with gr.Row():
110
  textbox = gr.Textbox(
111
  container=False,
112
  show_label=False,
113
- placeholder='Hi, Zephyr',
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 DeepSeek Coder. 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
+ # DeepSeek Coder 1.3b Chatbot
64
  """
65
 
66
  def clear_and_save_textbox(message): return '', message
 
101
  if input_token_length > MAX_INPUT_TOKEN_LENGTH:
102
  raise gr.Error(f"The accumulated input is too long ({input_token_length} > {MAX_INPUT_TOKEN_LENGTH}). Clear your chat history and try again.")
103
 
104
+ with gr.Blocks(theme='gradio/soft') as demo:
105
  gr.Markdown(DESCRIPTION)
106
 
107
  with gr.Group():
108
+ chatbot = gr.Chatbot(label='DeepSeek')
109
  with gr.Row():
110
  textbox = gr.Textbox(
111
  container=False,
112
  show_label=False,
113
+ placeholder='Hi, DeepSeek Coder',
114
  scale=10
115
  )
116
  submit_button = gr.Button('Submit', variant='primary', scale=1, min_width=0)