AlStable commited on
Commit
204807a
·
1 Parent(s): c80d1cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -2,12 +2,8 @@ import os
2
  import gradio as gr
3
  import logging
4
 
5
- LOG_FORMAT = '%(asctime)s - %(levelname)s [%(name)s] %(funcName)s -> %(message)s'
6
- logging.basicConfig(filename = 'console-aw.log',
7
- level = logging.DEBUG,
8
- format = LOG_FORMAT)
9
- logger = logging.getLogger(__name__)
10
- logger.debug('Logging started')
11
 
12
  API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
13
  article = """---
@@ -37,9 +33,11 @@ def selectModel(message):
37
  for i in range(len(models)):
38
  if message.find(models[i].prefix)!=-1:
39
  c_model=models[i].path
 
40
  return c_model
41
  else:
42
  c_model=models[i].path
 
43
  return c_model
44
 
45
  sandbox = gr.Interface.load(
 
2
  import gradio as gr
3
  import logging
4
 
5
+ logging.basicConfig(format='%(process)d-%(levelname)s-%(message)s')
6
+ logging.debug(' - app.py started')
 
 
 
 
7
 
8
  API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
9
  article = """---
 
33
  for i in range(len(models)):
34
  if message.find(models[i].prefix)!=-1:
35
  c_model=models[i].path
36
+ logging.debug(' c_model = '+c_model)
37
  return c_model
38
  else:
39
  c_model=models[i].path
40
+ logging.debug(' - c_model = '+c_model)
41
  return c_model
42
 
43
  sandbox = gr.Interface.load(