Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -28,7 +28,7 @@ class Prompt(BaseModel):
|
|
28 |
original_prompt: str
|
29 |
@app.post("/get_compressed_text")
|
30 |
async def get_compressed_text(prompt: Prompt):
|
31 |
-
compressed_prompt = llm_lingua.compress_prompt(prompt.
|
32 |
print("compressed")
|
33 |
return compressed_prompt
|
34 |
|
|
|
28 |
original_prompt: str
|
29 |
@app.post("/get_compressed_text")
|
30 |
async def get_compressed_text(prompt: Prompt):
|
31 |
+
compressed_prompt = llm_lingua.compress_prompt(prompt.original_prompt, instruction="", question="")
|
32 |
print("compressed")
|
33 |
return compressed_prompt
|
34 |
|