simpified UI code
Browse files- app.py +14 -14
- chroma/chroma.sqlite3 +1 -1
app.py
CHANGED
@@ -150,34 +150,34 @@ def change_language(radio,text_input,text_output,markdown,
|
|
150 |
index = 0
|
151 |
text_input_update=gr.Textbox(value = chinese_converter.to_simplified(text_input), label = text_input_label[index])
|
152 |
text_output_update=gr.Textbox(value = chinese_converter.to_simplified(text_output),label = text_output_label[index])
|
153 |
-
markdown_update=
|
154 |
-
markdown_msg1_update=
|
155 |
-
markdown_msg2_update=
|
156 |
elif radio == "繁體中文":
|
157 |
index = 1
|
158 |
text_input_update=gr.Textbox(value = chinese_converter.to_traditional(text_input),label = text_input_label[index])
|
159 |
text_output_update=gr.Textbox(value = chinese_converter.to_traditional(text_output),label = text_output_label[index])
|
160 |
-
markdown_update=
|
161 |
-
markdown_msg1_update=
|
162 |
-
markdown_msg2_update=
|
163 |
elif radio == "English":
|
164 |
index = 2
|
165 |
text_input_update=gr.Textbox(label = text_input_label[index])
|
166 |
text_output_update=gr.Textbox(label = text_output_label[index])
|
167 |
-
markdown_update=
|
168 |
-
markdown_msg1_update=
|
169 |
-
markdown_msg2_update=
|
170 |
|
171 |
else:
|
172 |
index = 0
|
173 |
text_input_update=gr.Textbox(label = text_input_label[index])
|
174 |
text_output_update=gr.Textbox(label = text_output_label[index])
|
175 |
-
markdown_update=
|
176 |
-
markdown_msg1_update=
|
177 |
-
markdown_msg2_update=
|
178 |
|
179 |
-
clear_btn_update =
|
180 |
-
submit_btn_update =
|
181 |
|
182 |
return [text_input_update,text_output_update,clear_btn_update,submit_btn_update,markdown_update,
|
183 |
markdown_msg1_update ,markdown_msg2_update]
|
|
|
150 |
index = 0
|
151 |
text_input_update=gr.Textbox(value = chinese_converter.to_simplified(text_input), label = text_input_label[index])
|
152 |
text_output_update=gr.Textbox(value = chinese_converter.to_simplified(text_output),label = text_output_label[index])
|
153 |
+
markdown_update=chinese_converter.to_simplified(markdown)
|
154 |
+
markdown_msg1_update=chinese_converter.to_simplified(markdown_msg1)
|
155 |
+
markdown_msg2_update=chinese_converter.to_simplified(markdown_msg2)
|
156 |
elif radio == "繁體中文":
|
157 |
index = 1
|
158 |
text_input_update=gr.Textbox(value = chinese_converter.to_traditional(text_input),label = text_input_label[index])
|
159 |
text_output_update=gr.Textbox(value = chinese_converter.to_traditional(text_output),label = text_output_label[index])
|
160 |
+
markdown_update=chinese_converter.to_traditional(markdown)
|
161 |
+
markdown_msg1_update=chinese_converter.to_traditional(markdown_msg1)
|
162 |
+
markdown_msg2_update=chinese_converter.to_traditional(markdown_msg2)
|
163 |
elif radio == "English":
|
164 |
index = 2
|
165 |
text_input_update=gr.Textbox(label = text_input_label[index])
|
166 |
text_output_update=gr.Textbox(label = text_output_label[index])
|
167 |
+
markdown_update=markdown
|
168 |
+
markdown_msg1_update=markdown_msg1
|
169 |
+
markdown_msg2_update=markdown_msg2
|
170 |
|
171 |
else:
|
172 |
index = 0
|
173 |
text_input_update=gr.Textbox(label = text_input_label[index])
|
174 |
text_output_update=gr.Textbox(label = text_output_label[index])
|
175 |
+
markdown_update=chinese_converter.to_simplified(markdown)
|
176 |
+
markdown_msg1_update=chinese_converter.to_simplified(markdown_msg1)
|
177 |
+
markdown_msg2_update=chinese_converter.to_simplified(markdown_msg2)
|
178 |
|
179 |
+
clear_btn_update = clear_label[index]
|
180 |
+
submit_btn_update = submit_label[index]
|
181 |
|
182 |
return [text_input_update,text_output_update,clear_btn_update,submit_btn_update,markdown_update,
|
183 |
markdown_msg1_update ,markdown_msg2_update]
|
chroma/chroma.sqlite3
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 7553024
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cad65f2c9bef46ec4f9cf710a1b78489a38b874ca0664ff400863cf85941b05d
|
3 |
size 7553024
|