Spaces:
Sleeping
Sleeping
Update src/Demo.py
Browse files- src/Demo.py +2 -2
src/Demo.py
CHANGED
@@ -45,10 +45,10 @@ def main():
|
|
45 |
user_input = st.text_area("Enter a Nepali Sentence: ", selected_example_text)
|
46 |
if st.button("Check Spelling"):
|
47 |
if user_input:
|
48 |
-
user_input = check_and_insert_space(user_input)
|
49 |
correctedText = generate(selected_model, user_input)
|
50 |
# correctedText = {0: "मेरो देस नेपाल हो।", 1: "मेरो देश नेपाल हो।"}
|
51 |
-
correctedText = correctedText[0]["sequence"]
|
52 |
# # Perfrom grammer correction
|
53 |
# st.subheader("Corrected Text:")
|
54 |
# st.write([f"{line['score']:.2f}: {line['sequence']}"for line in correctedText])
|
|
|
45 |
user_input = st.text_area("Enter a Nepali Sentence: ", selected_example_text)
|
46 |
if st.button("Check Spelling"):
|
47 |
if user_input:
|
48 |
+
# user_input = check_and_insert_space(user_input)
|
49 |
correctedText = generate(selected_model, user_input)
|
50 |
# correctedText = {0: "मेरो देस नेपाल हो।", 1: "मेरो देश नेपाल हो।"}
|
51 |
+
# correctedText = correctedText[0]["sequence"]
|
52 |
# # Perfrom grammer correction
|
53 |
# st.subheader("Corrected Text:")
|
54 |
# st.write([f"{line['score']:.2f}: {line['sequence']}"for line in correctedText])
|