JerryLiJinyi commited on
Commit
8b0f9d2
1 Parent(s): 0455252

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ def compressit(original_text, compressor1, ratio, maxlength):
15
  elif compressor1=="LongLLMLingua":
16
  return "Sorry, currently we cannot provide services for LongLLMLingua due to the Huggingface Token issue. Please try other compressors."
17
  elif compressor1=="SCRL":
18
- compressor = PromptCompressor(type='SCRLCompressor', model_dir="models/newsroom-L11/", device="cpu", tokenizer_dir="sentence-transformers/paraphrase-distilroberta-base-v2")
 
19
  elif compressor1=="KiS":
20
  compressor = PromptCompressor(type='KiSCompressor', device="cpu", model_dir="philippelaban/keep_it_simple")
21
  else:
 
15
  elif compressor1=="LongLLMLingua":
16
  return "Sorry, currently we cannot provide services for LongLLMLingua due to the Huggingface Token issue. Please try other compressors."
17
  elif compressor1=="SCRL":
18
+ return "Sorry, but currently we found an issue in presenting SCRL on Huggingface, you can try this compressor from our GitHub repository."
19
+ # compressor = PromptCompressor(type='SCRLCompressor', model_dir="models/newsroom-L11/", device="cpu", tokenizer_dir="sentence-transformers/paraphrase-distilroberta-base-v2")
20
  elif compressor1=="KiS":
21
  compressor = PromptCompressor(type='KiSCompressor', device="cpu", model_dir="philippelaban/keep_it_simple")
22
  else: