Iker commited on
Commit
2c6aa68
1 Parent(s): 579b5b6
Files changed (1) hide show
  1. app.py +4 -0
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