Spaces:
Cran-May
/
Runtime error

Cran-May commited on
Commit
02cb616
1 Parent(s): 3f64605

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -11,9 +11,9 @@ DEFAULT_MAX_NEW_TOKENS = 1024
11
  MAX_INPUT_TOKEN_LENGTH = 4000
12
 
13
  DESCRIPTION = """
14
- # yugangVI-Chat
15
  """
16
- LICENSE=""
17
 
18
 
19
 
@@ -74,22 +74,22 @@ with gr.Blocks(css='style.css') as demo:
74
  textbox = gr.Textbox(
75
  container=False,
76
  show_label=False,
77
- placeholder='Type a message...',
78
  scale=10,
79
  )
80
- submit_button = gr.Button('Submit',
81
  variant='primary',
82
  scale=1,
83
  min_width=0)
84
  with gr.Row():
85
- retry_button = gr.Button('🔄 Retry', variant='secondary')
86
- undo_button = gr.Button('↩️ Undo', variant='secondary')
87
- clear_button = gr.Button('🗑️ Clear', variant='secondary')
88
 
89
  saved_input = gr.State()
90
 
91
- with gr.Accordion(label='Advanced options', open=False):
92
- system_prompt = gr.Textbox(label='System prompt',
93
  value=DEFAULT_SYSTEM_PROMPT,
94
  lines=6)
95
  max_new_tokens = gr.Slider(
@@ -100,7 +100,7 @@ with gr.Blocks(css='style.css') as demo:
100
  value=DEFAULT_MAX_NEW_TOKENS,
101
  )
102
  temperature = gr.Slider(
103
- label='Temperature',
104
  minimum=0.1,
105
  maximum=4.0,
106
  step=0.1,
@@ -123,7 +123,7 @@ with gr.Blocks(css='style.css') as demo:
123
 
124
  gr.Examples(
125
  examples=[
126
- '世界上第二高的山峰是哪座',
127
 
128
  ],
129
  inputs=textbox,
 
11
  MAX_INPUT_TOKEN_LENGTH = 4000
12
 
13
  DESCRIPTION = """
14
+ # 玉刚六号改/yugangVI-Chat
15
  """
16
+ LICENSE="基于Baichuan-13B-Chat以及https://github.com/ouwei2013/baichuan13b.cpp"
17
 
18
 
19
 
 
74
  textbox = gr.Textbox(
75
  container=False,
76
  show_label=False,
77
+ placeholder='请输入/Type a message...',
78
  scale=10,
79
  )
80
+ submit_button = gr.Button('提交/Submit',
81
  variant='primary',
82
  scale=1,
83
  min_width=0)
84
  with gr.Row():
85
+ retry_button = gr.Button('🔄 重来/Retry', variant='secondary')
86
+ undo_button = gr.Button('↩️ 撤销/Undo', variant='secondary')
87
+ clear_button = gr.Button('🗑️ 清除/Clear', variant='secondary')
88
 
89
  saved_input = gr.State()
90
 
91
+ with gr.Accordion(label='进阶设置/Advanced options', open=False):
92
+ system_prompt = gr.Textbox(label='预设引导词/System prompt',
93
  value=DEFAULT_SYSTEM_PROMPT,
94
  lines=6)
95
  max_new_tokens = gr.Slider(
 
100
  value=DEFAULT_MAX_NEW_TOKENS,
101
  )
102
  temperature = gr.Slider(
103
+ label='情感温度/Temperature',
104
  minimum=0.1,
105
  maximum=4.0,
106
  step=0.1,
 
123
 
124
  gr.Examples(
125
  examples=[
126
+ '中华人民共和国的首都是?',
127
 
128
  ],
129
  inputs=textbox,