Update app.py
Browse files
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://
|
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),
|