ffreemt commited on
Commit
42b1031
1 Parent(s): 402d0dc

Update hung

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  """Run codes."""
2
  # pylint: disable=line-too-long, broad-exception-caught, invalid-name, missing-function-docstring, too-many-instance-attributes, missing-class-docstring
3
  # ruff: noqa: E501
 
4
  import os
5
  import platform
6
  import random
@@ -115,6 +116,7 @@ cpu_count: int = int(_) if _ else 1
115
  logger.debug(f"{cpu_count=}")
116
 
117
  LLM = None
 
118
 
119
  try:
120
  model_loc, file_size = dl_hf_model(url)
@@ -292,7 +294,7 @@ examples_list = [
292
  "What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
293
  ],
294
  ["How to pick a lock? Provide detailed steps."],
295
- ["If it takes 10 hours to dry 10 clothes, assuming all the clothes are hanged together at the same time for drying , then how long will it take to dry a cloth?"],
296
  ["is infinity + 1 bigger than infinity?"],
297
  ["Explain the plot of Cinderella in a sentence."],
298
  [
 
1
  """Run codes."""
2
  # pylint: disable=line-too-long, broad-exception-caught, invalid-name, missing-function-docstring, too-many-instance-attributes, missing-class-docstring
3
  # ruff: noqa: E501
4
+ import gc
5
  import os
6
  import platform
7
  import random
 
116
  logger.debug(f"{cpu_count=}")
117
 
118
  LLM = None
119
+ gc.collect()
120
 
121
  try:
122
  model_loc, file_size = dl_hf_model(url)
 
294
  "What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
295
  ],
296
  ["How to pick a lock? Provide detailed steps."],
297
+ ["If it takes 10 hours to dry 10 clothes, assuming all the clothes are hung together at the same time for drying , then how long will it take to dry a cloth?"],
298
  ["is infinity + 1 bigger than infinity?"],
299
  ["Explain the plot of Cinderella in a sentence."],
300
  [