Spaces:
Running
on
Zero
Running
on
Zero
Verbosity
Browse files
app.py
CHANGED
@@ -115,6 +115,10 @@ def generate_text(
|
|
115 |
temp = finish_generation(temp)
|
116 |
yield title, temp, text
|
117 |
|
|
|
|
|
|
|
|
|
118 |
return title, temp, text
|
119 |
|
120 |
|
|
|
115 |
temp = finish_generation(temp)
|
116 |
yield title, temp, text
|
117 |
|
118 |
+
hits, misses, cache_len = cache_handler.get_cache_stats()
|
119 |
+
print(
|
120 |
+
f"Hits: {hits}, misses: {misses}, cache length: {cache_len}. Percent hits: {round(hits/(hits+misses)*100,2)}%."
|
121 |
+
)
|
122 |
return title, temp, text
|
123 |
|
124 |
|