Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import streamlit as st
|
|
2 |
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
3 |
import opencc
|
4 |
|
5 |
-
#local_path = "./LLM"
|
6 |
# 使用中文摘要模型
|
7 |
local_path = 'utrobinmv/t5_summary_en_ru_zh_base_2048'
|
8 |
model = T5ForConditionalGeneration.from_pretrained(local_path)
|
|
|
2 |
from transformers import T5ForConditionalGeneration, T5Tokenizer
|
3 |
import opencc
|
4 |
|
|
|
5 |
# 使用中文摘要模型
|
6 |
local_path = 'utrobinmv/t5_summary_en_ru_zh_base_2048'
|
7 |
model = T5ForConditionalGeneration.from_pretrained(local_path)
|