Spaces:
Runtime error
Runtime error
JerryLiJinyi
commited on
Commit
•
a836b09
1
Parent(s):
35345c8
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ 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/
|
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 |
+
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:
|