raw9 commited on
Commit
fc25ee8
·
verified ·
1 Parent(s): ea79449

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,16 +17,16 @@ def start_terminal():
17
  else:
18
  logging.info("🔒 TERMINAL_AUTH secret loaded successfully.")
19
 
20
- logging.info("🚀 Starting Pure Deep-Black Professional Workspace on Port 7860...")
21
 
22
  # Using absolute path for ttyd to prevent any PATH-related bugs
23
  command = ["/usr/local/bin/ttyd", "-p", "7860", "-c", user_pass, "tmux", "new-session", "-A", "-s", "workspace", "zsh"]
24
 
25
  try:
26
- # Popen ব্যবহার করা হলো যাতে সিগন্যাল হ্যান্ডেল করা যায়
27
  process = subprocess.Popen(command)
28
 
29
- # Hugging Face-এর জন্য Graceful Shutdown সেটআপ
30
  def sigterm_handler(signum, frame):
31
  logging.info("🛑 Shutting down terminal server gracefully...")
32
  process.terminate()
 
17
  else:
18
  logging.info("🔒 TERMINAL_AUTH secret loaded successfully.")
19
 
20
+ logging.info("🚀 Starting Ultra-Fast Professional Workspace on Port 7860...")
21
 
22
  # Using absolute path for ttyd to prevent any PATH-related bugs
23
  command = ["/usr/local/bin/ttyd", "-p", "7860", "-c", user_pass, "tmux", "new-session", "-A", "-s", "workspace", "zsh"]
24
 
25
  try:
26
+ # Popen bebohar kora holo jate graceful shutdown kaaj kore
27
  process = subprocess.Popen(command)
28
 
29
+ # Hugging Face-er jonno Graceful Shutdown setup
30
  def sigterm_handler(signum, frame):
31
  logging.info("🛑 Shutting down terminal server gracefully...")
32
  process.terminate()