kritsadaK commited on
Commit
f231914
1 Parent(s): 4b84b24

Initial commit

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -32,6 +32,9 @@ def get_embedding(text):
32
  # Streamlit app setup
33
  st.title("Thai Full Sentence Similarity App")
34
 
 
 
 
35
  st.write("""
36
  ### How This App Works
37
  This app uses a mask-filling model to predict possible words or phrases that could fill in the `<mask>` token in a given sentence. It then calculates the similarity of each prediction with the original sentence to determine the most contextually appropriate completion.
@@ -66,7 +69,8 @@ Feel free to enter your own sentence with `<mask>` and explore the predictions!
66
 
67
  # User input box
68
  st.subheader("Input Text")
69
- input_text = st.text_input("Enter a sentence with `<mask>` to find similar predictions:", "นักท่องเที่ยวจำนวนมากเลือกที่จะไปเยือน <mask> เพื่อสัมผัสธรรมชาติ")
 
70
 
71
  # Ensure the input includes a `<mask>`
72
  if "<mask>" not in input_text:
 
32
  # Streamlit app setup
33
  st.title("Thai Full Sentence Similarity App")
34
 
35
+ st.write("""
36
+ ## using Thai Law nlp dataset""")
37
+
38
  st.write("""
39
  ### How This App Works
40
  This app uses a mask-filling model to predict possible words or phrases that could fill in the `<mask>` token in a given sentence. It then calculates the similarity of each prediction with the original sentence to determine the most contextually appropriate completion.
 
69
 
70
  # User input box
71
  st.subheader("Input Text")
72
+ input_text = st.text_input("Enter a sentence with `<mask>` to find similar predictions:", "เมนูโปรดของฉันคือ <mask> ที่ทำจากวัตถุดิบสดใหม่")
73
+
74
 
75
  # Ensure the input includes a `<mask>`
76
  if "<mask>" not in input_text: