raynardj commited on
Commit
121f3c9
1 Parent(s): efbcb42

🏅 refined

Browse files
Files changed (2) hide show
  1. app.py +19 -0
  2. shiji.png +0 -0
app.py CHANGED
@@ -4,6 +4,25 @@ from sentence_transformers import SentenceTransformer
4
  from forgebox.cosine import CosineSearch
5
  import numpy as np
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  TAG = "raynardj/xlsearch-cross-lang-search-zh-vs-classicical-cn"
8
 
9
  @st.cache(allow_output_mutation=True)
4
  from forgebox.cosine import CosineSearch
5
  import numpy as np
6
 
7
+ from PIL import Image
8
+ image = Image.open('shiji.png')
9
+
10
+
11
+ st.markdown("""
12
+ ## 🍻 跨古/现代文搜索: 用白话搜史记
13
+ """)
14
+
15
+ st.sidebar.image(image, use_column_width=True)
16
+ st.sidebar.markdown("""
17
+ Search《Records of the Grand Historian》 with modern Chinese
18
+ ### References
19
+ * Model trained [here, please hit ⭐️](https://github.com/raynardj/yuan)
20
+ * [Trained crossed language BERT](https://huggingface.co/raynardj/xlsearch-cross-lang-search-zh-vs-classicical-cn)
21
+ ### Related projects
22
+ * Read more [ancient books(almost all) with a translator](https://huggingface.co/spaces/raynardj/duguwen-classical-chinese-to-morden-translate)
23
+ * [Modern Chines to classical Chinese translator](https://huggingface.co/spaces/raynardj/modern-chinese-to-ancient-translate-wenyanwen)
24
+ """)
25
+
26
  TAG = "raynardj/xlsearch-cross-lang-search-zh-vs-classicical-cn"
27
 
28
  @st.cache(allow_output_mutation=True)
shiji.png ADDED