Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import transformers
|
|
2 |
import torch
|
3 |
import tokenizers
|
4 |
import streamlit as st
|
|
|
5 |
|
6 |
|
7 |
@st.cache(hash_funcs={tokenizers.Tokenizer: lambda _: None, tokenizers.AddedToken: lambda _: None, _regex.Pattern: lambda _: None}, suppress_st_warning=True)
|
@@ -31,8 +32,8 @@ def predict(text, model, tokenizer, n_beams=5, temperature=2.5, top_p=0.8, max_l
|
|
31 |
model, tokenizer = get_model('sberbank-ai/rugpt3medium_based_on_gpt2', 'korzh-medium_30epochs_1bs.bin')
|
32 |
|
33 |
st.title("NeuroKorzh")
|
34 |
-
st.markdown("<img width=200px src='https://avatars.yandex.net/get-music-content/2399641/5d26d7e5.p.975699/m1000x1000'>",
|
35 |
-
|
36 |
|
37 |
st.markdown("\n")
|
38 |
|
|
|
2 |
import torch
|
3 |
import tokenizers
|
4 |
import streamlit as st
|
5 |
+
import re
|
6 |
|
7 |
|
8 |
@st.cache(hash_funcs={tokenizers.Tokenizer: lambda _: None, tokenizers.AddedToken: lambda _: None, _regex.Pattern: lambda _: None}, suppress_st_warning=True)
|
|
|
32 |
model, tokenizer = get_model('sberbank-ai/rugpt3medium_based_on_gpt2', 'korzh-medium_30epochs_1bs.bin')
|
33 |
|
34 |
st.title("NeuroKorzh")
|
35 |
+
# st.markdown("<img width=200px src='https://avatars.yandex.net/get-music-content/2399641/5d26d7e5.p.975699/m1000x1000'>",
|
36 |
+
# unsafe_allow_html=True)
|
37 |
|
38 |
st.markdown("\n")
|
39 |
|