Skip to content

Commit

Permalink
Fix compress only target
Browse files Browse the repository at this point in the history
  • Loading branch information
cornzz committed Sep 9, 2024
1 parent cb6c9d4 commit 748f122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def run_demo(
if target_model == "Compress only":
compressed, diff, metrics, compression_time = compress_prompt(prompt, rate, force_tokens, bool(force_digits))
metrics["Compression"] = [f"{compression_time:.2f}s"]
return compressed, diff, metrics, None, None, None, None
return [compressed, diff, metrics] + [None] * 4 + [gr.Button(interactive=False)] * 3

with ThreadPoolExecutor() as executor:
get_query = lambda p: f"{question}\n\n{p}" if question else p
Expand Down

0 comments on commit 748f122

Please sign in to comment.