penpen commited on
Commit
33ca0c4
1 Parent(s): 84b28fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import numpy as np
5
  import os
6
 
7
  model_checkpoint = "penpen/novel-zh-en"
8
- translator = pipeline("translation", model=model_checkpoint, max_time=7, num_beams=1)
9
  default_dict = pd.read_csv("example_dictionary.csv", names=["Chinese", "English"])
10
  examples = pd.read_csv("examples.csv", header = None)
11
 
 
5
  import os
6
 
7
  model_checkpoint = "penpen/novel-zh-en"
8
+ translator = pipeline("translation", model=model_checkpoint, max_time=7)
9
  default_dict = pd.read_csv("example_dictionary.csv", names=["Chinese", "English"])
10
  examples = pd.read_csv("examples.csv", header = None)
11