Spaces:
Sleeping
Sleeping
File size: 535 Bytes
5ff29be 35996ec 5ff29be 35996ec 6893866 35996ec 96a0e76 1459d42 35996ec 5bcc942 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import streamlit as st
from utils import get_res
st.title('Tokenizers demo')
#x = st.slider('Select a value')
#st.write(x, 'squared is', x * x)
option = st.selectbox(
'Choose a tokenizer',
['狗', '貓', '鸚鵡', '天竺鼠'])
'你的答案:', option
model_name = st.text_input('Model Name', 'deepseek-ai/deepseek-coder-1.3b-instruct')
'Your choice:', model_name
input_data = st.text_input('Input Sentence', 'Hello world!!!')
res = get_res(model_name=model_name, input_sentence=input_data, single_print=False)
res |