Spaces:
Runtime error
Runtime error
from meutils.pipe import * | |
from appzoo.streamlit_app import Page | |
import streamlit as st | |
from LAC import LAC | |
# @st.experimental_memo(persist='disk', show_spinner=True, suppress_st_warning=False, max_entries=None, ttl=64) | |
def tokenizer1(): | |
print('Loading tokenizer1...') | |
return LAC() | |
def tokenizer2(): | |
print('Loading tokenizer2...') | |
return LAC() | |
class MyPage(Page): | |
def main(self): | |
with st.form("Coding"): | |
text = st.text_input("θΎε ₯ζζ¬", "") | |
if st.form_submit_button('εΌε§θ½¬ζ’'): | |
_ = tokenizer1().run(text) | |
_ = tokenizer2().run(text) | |
st.json(_) | |
if __name__ == '__main__': | |
app_title = "# εθ―" | |
app_info = "" | |
MyPage(app_title=app_title, app_info=app_info).main() | |