Oluwatoni commited on
Commit
d76de3c
·
verified ·
1 Parent(s): 6b3c3d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from llmlingua import PromptCompressor
5
  app = FastAPI()
6
 
7
  # Initialize LLMLingua-2 for better compression
8
- compressor = PromptCompressor(model_name="microsoft/llmlingua-2-bert-base-multilingual-cased-meetingbank",use_past_key_values=False, device_map="cpu")
9
 
10
  class TextInput(BaseModel):
11
  text: str
 
5
  app = FastAPI()
6
 
7
  # Initialize LLMLingua-2 for better compression
8
+ compressor = PromptCompressor(model_name="microsoft/llmlingua-2-bert-base-multilingual-cased-meetingbank",use_past_key_values=None, device_map="cpu")
9
 
10
  class TextInput(BaseModel):
11
  text: str