rycont commited on
Commit
3a2997a
·
1 Parent(s): 084831c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -10,19 +10,13 @@ def loadModels():
10
 
11
  print("Loaded :)")
12
  return _model, _tokenizer
13
-
14
- model, tokenizer = loadModels()
15
 
16
- lit.title("성경말투 생성기")
17
- lit.caption("적당한 길이의 문장을 넣었을 가장 좋은 결과가 나옵니다.")
18
- lit.caption("https://github.com/rycont/kobart-biblify")
19
 
20
  MAX_LENGTH = 128
21
 
22
- with lit.form("GEN"):
23
- text_input = lit.text_area("문장 입력")
24
- submitted = lit.form_submit_button("생성")
25
-
26
  def biblifyWithBeams(beam, tokens, attention_mask):
27
  generated = model.generate(
28
  input_ids = torch.Tensor([ tokens ]).to(torch.int64),
 
10
 
11
  print("Loaded :)")
12
  return _model, _tokenizer
 
 
13
 
14
+ lit.title("주소가 변경되었습니다")
15
+ lit.caption(" 안정적인 서비스를 제공하기 위해 주소를 이전하였습니다.")
16
+ lit.caption("https://main-biblify-space-rycont.endpoint.ainize.ai/")
17
 
18
  MAX_LENGTH = 128
19
 
 
 
 
 
20
  def biblifyWithBeams(beam, tokens, attention_mask):
21
  generated = model.generate(
22
  input_ids = torch.Tensor([ tokens ]).to(torch.int64),