hanyullai commited on
Commit
f84a603
1 Parent(s): 601d175

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -55,9 +55,9 @@ def predict(text, seed, out_seq_length, min_gen_length, sampling_strategy,
55
  if __name__ == "__main__":
56
 
57
  en_fil = ['The Starry Night is an oil-on-canvas painting by [MASK] in June 1889.']
58
- en_gen = ['Eight planets in solar system are']
59
  ch_fil = ['凯旋门位于意大利米兰市古城堡旁。1807年为纪念[MASK]而建,门高25米,顶上矗立两武士青铜古兵车铸像。']
60
- ch_gen = ['三亚位于海南岛的最南端,是中国最南部的热带滨海旅游城市']
61
  en_to_ch = ['Pencil in Chinese is [MASK].']
62
  ch_to_en = ['"我思故我在"的英文是"[MASK]"。']
63
 
@@ -66,10 +66,9 @@ if __name__ == "__main__":
66
  with gr.Blocks() as demo:
67
  gr.Markdown(
68
  """
69
- # GLM-130B
70
- An Open Bilingual Pre-Trained Model
71
-
72
- [Visit our github repo](https://github.com/THUDM/GLM-130B)
73
  """)
74
 
75
  with gr.Row():
 
55
  if __name__ == "__main__":
56
 
57
  en_fil = ['The Starry Night is an oil-on-canvas painting by [MASK] in June 1889.']
58
+ en_gen = ['Eight planets in solar system are [gMASK]']
59
  ch_fil = ['凯旋门位于意大利米兰市古城堡旁。1807年为纪念[MASK]而建,门高25米,顶上矗立两武士青铜古兵车铸像。']
60
+ ch_gen = ['三亚位于海南岛的最南端,是中国最南部的热带滨海旅游城市 [gMASK]']
61
  en_to_ch = ['Pencil in Chinese is [MASK].']
62
  ch_to_en = ['"我思故我在"的英文是"[MASK]"。']
63
 
 
66
  with gr.Blocks() as demo:
67
  gr.Markdown(
68
  """
69
+ An Open Bilingual Pre-Trained Model. [Visit our github repo](https://github.com/THUDM/GLM-130B)
70
+
71
+ GLM-130B uses two different mask tokens: `[MASK]` for short blank filling and `[gMASK]` for left-to-right long text generation. When the input does not contain any MASK token, `[gMASK]` will be automatically appended to the end of the text. We recommend that you use `[MASK]` to try text fill-in-the-blank to reduce wait time (ideally within seconds without queuing).
 
72
  """)
73
 
74
  with gr.Row():