Lord-Raven commited on
Commit
b623ed0
·
1 Parent(s): 6d6ef9c

Turning on logging to diagnose another issue.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def classify(data_string, request: gradio.Request):
54
  print(f"GPU classification failed: {e}\nFall back to CPU.")
55
  if not result:
56
  result = zero_shot_classification_cpu(data)
57
- print(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - CPU Classification took {time.time() - start_time}.")
58
  return json.dumps(result)
59
 
60
  def zero_shot_classification_cpu(data):
 
54
  print(f"GPU classification failed: {e}\nFall back to CPU.")
55
  if not result:
56
  result = zero_shot_classification_cpu(data)
57
+ print(f"{datetime.now().strftime('%Y-%m-%d %H:%M:%S')} - CPU Classification took {time.time() - start_time}: {data}")
58
  return json.dumps(result)
59
 
60
  def zero_shot_classification_cpu(data):