Yurii Paniv commited on
Commit
f51ad9a
·
1 Parent(s): d36cdc2

Add notification

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -44,9 +44,13 @@ def check_thread(logging_queue: Queue):
44
 
45
 
46
  if getenv("HF_API_TOKEN") is not None:
 
47
  log_queue = Queue()
48
  t = Thread(target=check_thread, args=(log_queue,))
49
  t.start()
 
 
 
50
 
51
 
52
  config = PeftConfig.from_pretrained("lang-uk/dragoman")
 
44
 
45
 
46
  if getenv("HF_API_TOKEN") is not None:
47
+ print("Starting logging thread...")
48
  log_queue = Queue()
49
  t = Thread(target=check_thread, args=(log_queue,))
50
  t.start()
51
+ print("Logging thread started.")
52
+ else:
53
+ print("No HF_API_TOKEN found. Logging is disabled.")
54
 
55
 
56
  config = PeftConfig.from_pretrained("lang-uk/dragoman")