Reverent commited on
Commit
a23fb06
·
1 Parent(s): b354647

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ def warmer():
20
  end_time = time.time()
21
  duration = end_time - start_time
22
  print("Time elapsed for Pygmalion model : ", duration)
23
- if duration > 120: # Check if duration to generate tokens exceeds 2 minutes
24
  restart()
25
 
26
  start_time = time.time()
@@ -32,7 +32,7 @@ def warmer():
32
  end_time = time.time()
33
  duration = end_time - start_time
34
  print("Time elapsed for WizardLM model : ", duration)
35
- if duration > 120: # Check if duration to generate tokens exceeds 5 minutes
36
  restart()
37
 
38
  if (text_output != None) and (text_output_2 != None):
 
20
  end_time = time.time()
21
  duration = end_time - start_time
22
  print("Time elapsed for Pygmalion model : ", duration)
23
+ if duration > 60: # Check if duration to generate tokens exceeds 1 minutes
24
  restart()
25
 
26
  start_time = time.time()
 
32
  end_time = time.time()
33
  duration = end_time - start_time
34
  print("Time elapsed for WizardLM model : ", duration)
35
+ if duration > 90: # Check if duration to generate tokens exceeds 1.4 minutes
36
  restart()
37
 
38
  if (text_output != None) and (text_output_2 != None):