JerryLiJinyi commited on
Commit
06fee9d
1 Parent(s): 83f848c

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +4 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import gradio as gr
2
  from compressor import PromptCompressor
3
 
 
 
 
 
4
 
5
  def compressit(original_text, compressor1, ratio, maxlength):
6
 
 
1
  import gradio as gr
2
  from compressor import PromptCompressor
3
 
4
+ import os
5
+ res = os.popen('python -m spacy download en_core_web_sm').read()
6
+ print(res)
7
+
8
 
9
  def compressit(original_text, compressor1, ratio, maxlength):
10
 
requirements.txt CHANGED
@@ -21,4 +21,3 @@ rake-nltk
21
  scikit-learn
22
  python-Levenshtein
23
  colorama
24
- python -m spacy download en_core_web_sm
 
21
  scikit-learn
22
  python-Levenshtein
23
  colorama