turtle170 commited on
Commit
4cf69fa
·
verified ·
1 Parent(s): 78214c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -11,6 +11,10 @@ from typing import List, Dict, Optional, Generator
11
  import gradio as gr
12
  from huggingface_hub import HfApi, hf_hub_download
13
 
 
 
 
 
14
  # --- KERNEL INITIALIZATION ---
15
  try:
16
  from llama_cpp import Llama
@@ -172,9 +176,6 @@ MODEL_FORMATS = {
172
  "deepseek": {"pattern": ["deepseek"], "template": "deepseek"},
173
  }
174
 
175
- logging.basicConfig(level=logging.INFO, format='%(asctime)s - ZEROENGINE - %(message)s')
176
- logger = logging.getLogger(__name__)
177
-
178
  # --- AGGRESSIVE GARBAGE COLLECTOR ---
179
  import gc
180
  import threading
 
11
  import gradio as gr
12
  from huggingface_hub import HfApi, hf_hub_download
13
 
14
+ # Initialize logger early for startup functions
15
+ logging.basicConfig(level=logging.INFO, format='%(asctime)s - ZEROENGINE - %(message)s')
16
+ logger = logging.getLogger(__name__)
17
+
18
  # --- KERNEL INITIALIZATION ---
19
  try:
20
  from llama_cpp import Llama
 
176
  "deepseek": {"pattern": ["deepseek"], "template": "deepseek"},
177
  }
178
 
 
 
 
179
  # --- AGGRESSIVE GARBAGE COLLECTOR ---
180
  import gc
181
  import threading