RefalMachine commited on
Commit
051148e
·
verified ·
1 Parent(s): 9436706

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -0
app.py CHANGED
@@ -82,6 +82,36 @@ options = options[:2]
82
  system_old = "You are a helpful and harmless assistant. You should think step-by-step. First, reason (the user does not see your reasoning), then give your final answer."
83
  system_new = "Ты Руадапт - полезный и дружелюбный интеллектуальный ассистент для помощи пользователям в их вопросах."
84
  system_new2 = "Ты — Руадапт, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  demo = gr.ChatInterface(
86
  respond,
87
  additional_inputs=[
@@ -97,6 +127,7 @@ demo = gr.ChatInterface(
97
  label="Top-p (nucleus sampling)",
98
  ),
99
  gr.Slider(minimum=0.9, maximum=1.5, value=1.05, step=0.05, label="repetition_penalty"),
 
100
  ],
101
  concurrency_limit=10
102
  )
 
82
  system_old = "You are a helpful and harmless assistant. You should think step-by-step. First, reason (the user does not see your reasoning), then give your final answer."
83
  system_new = "Ты Руадапт - полезный и дружелюбный интеллектуальный ассистент для помощи пользователям в их вопросах."
84
  system_new2 = "Ты — Руадапт, русскоязычный автоматический ассистент. Ты разговариваешь с людьми и помогаешь им."
85
+ latex_delimiters = [{
86
+ "left": "\\(",
87
+ "right": "\\)",
88
+ "display": True
89
+ }, {
90
+ "left": "\\begin\{equation\}",
91
+ "right": "\\end\{equation\}",
92
+ "display": True
93
+ }, {
94
+ "left": "\\begin\{align\}",
95
+ "right": "\\end\{align\}",
96
+ "display": True
97
+ }, {
98
+ "left": "\\begin\{alignat\}",
99
+ "right": "\\end\{alignat\}",
100
+ "display": True
101
+ }, {
102
+ "left": "\\begin\{gather\}",
103
+ "right": "\\end\{gather\}",
104
+ "display": True
105
+ }, {
106
+ "left": "\\begin\{CD\}",
107
+ "right": "\\end\{CD\}",
108
+ "display": True
109
+ }, {
110
+ "left": "\\[",
111
+ "right": "\\]",
112
+ "display": True
113
+ }]
114
+ chatbot = gr.Chatbot()
115
  demo = gr.ChatInterface(
116
  respond,
117
  additional_inputs=[
 
127
  label="Top-p (nucleus sampling)",
128
  ),
129
  gr.Slider(minimum=0.9, maximum=1.5, value=1.05, step=0.05, label="repetition_penalty"),
130
+ chatbot=chatbot
131
  ],
132
  concurrency_limit=10
133
  )