raynardj commited on
Commit
dd84e8d
1 Parent(s): affb45c

🎬 inference cache

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -3,6 +3,7 @@ from transformers import (
3
  AutoTokenizer
4
  )
5
  import torch
 
6
 
7
  PRETRAINED = "raynardj/wenyanwen-chinese-translate-to-ancient"
8
 
@@ -26,12 +27,9 @@ def inference(text):
26
  pad_token_id=tokenizer.pad_token_id,
27
  ), skip_special_tokens=True)[0].replace(" ","")
28
 
29
- import streamlit as st
30
-
31
- st.title("古朴 清雅 壮丽")
32
  st.markdown("""
33
  > Translate from Chinese to Ancient Chinese / 还你古朴清雅壮丽的文言文, 这[github](https://github.com/raynardj/yuan)
34
-
35
  > 最多100个中文字符
36
  """)
37
 
 
3
  AutoTokenizer
4
  )
5
  import torch
6
+ import streamlit as st
7
 
8
  PRETRAINED = "raynardj/wenyanwen-chinese-translate-to-ancient"
9
 
 
27
  pad_token_id=tokenizer.pad_token_id,
28
  ), skip_special_tokens=True)[0].replace(" ","")
29
 
30
+ st.title("🪕古朴 ❄️清雅 🌊壮丽")
 
 
31
  st.markdown("""
32
  > Translate from Chinese to Ancient Chinese / 还你古朴清雅壮丽的文言文, 这[github](https://github.com/raynardj/yuan)
 
33
  > 最多100个中文字符
34
  """)
35