Ransaka commited on
Commit
594ab7b
·
1 Parent(s): def3487

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,12 +31,13 @@ SIN_2_ENG = {
31
  st.set_page_config(page_title="Sinhala zero-shot classification demo", page_icon=":bar_chart:")
32
  st.title("Sinhala zero-shot classification demo")
33
  st.markdown("This is a demo of the zero-shot classification pipeline from the [HuggingFace Transformers library](https://huggingface.co/transformers/).")
34
- st.markdown("The model used is [Ransaka/sinhala-bert-small](https://huggingface.co/Ransaka/sinhala-bert-small). However, you can use any model from the [HuggingFace model hub](https://huggingface.co/models).")
35
 
36
  # select model
37
  def get_model_id():
38
  st.subheader("Select a model to use")
39
- model_list = ["Ransaka/sinhala-bert-small","Ransaka/SinhalaRoberta","keshan/SinhalaBERTo"]
 
40
  selected_model = st.selectbox("Select Model", model_list)
41
  st.write(f"Selected model: {selected_model}")
42
  tokenizer = AutoTokenizer.from_pretrained(selected_model, token=hf_token)
 
31
  st.set_page_config(page_title="Sinhala zero-shot classification demo", page_icon=":bar_chart:")
32
  st.title("Sinhala zero-shot classification demo")
33
  st.markdown("This is a demo of the zero-shot classification pipeline from the [HuggingFace Transformers library](https://huggingface.co/transformers/).")
34
+ st.markdown("The model used is [Ransaka/sinhala-bert-small](https://huggingface.co/Ransaka/sinhala-bert-small). However you can select a different model from the dropdown below.")
35
 
36
  # select model
37
  def get_model_id():
38
  st.subheader("Select a model to use")
39
+ model_list = ["Ransaka/sinhala-bert-small","Ransaka/SinhalaRoberta"]#,"keshan/SinhalaBERTo"] #commented as tokenizer used here is differ from previous tow models.
40
+ #TODO: Add "keshan/SinhalaBERTo" model as well
41
  selected_model = st.selectbox("Select Model", model_list)
42
  st.write(f"Selected model: {selected_model}")
43
  tokenizer = AutoTokenizer.from_pretrained(selected_model, token=hf_token)