Tihsrah-CD commited on
Commit
661b7ae
·
1 Parent(s): 187755c
Files changed (2) hide show
  1. app.py +14 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,3 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
  import pandas as pd
3
  import pickle
 
1
+ import subprocess
2
+
3
+ # Run the pip install command for pyenchant
4
+ subprocess.run(["pip", "install", "pyenchant"], check=True)
5
+
6
+ # Run the first command
7
+ subprocess.run(["apt", "install", "enchant", "--fix-missing", "-y"], check=True)
8
+
9
+ # Run the second command
10
+ subprocess.run(["apt", "install", "-qq", "enchant", "-y"], check=True)
11
+
12
+ # Run the pip install command for pyenchant
13
+ subprocess.run(["pip", "install", "pyenchant"], check=True)
14
+
15
  import streamlit as st
16
  import pandas as pd
17
  import pickle
requirements.txt CHANGED
@@ -7,7 +7,6 @@ python-Levenshtein
7
  joblib
8
  googletrans==4.0.0-rc1
9
  pyphonetics
10
- pyenchant==3.2.2
11
  beautifulsoup4
12
  lxml
13
 
 
7
  joblib
8
  googletrans==4.0.0-rc1
9
  pyphonetics
 
10
  beautifulsoup4
11
  lxml
12