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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -3,7 +3,7 @@ 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,11 +33,10 @@ def selectModel(message):
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(
 
3
  import logging
4
 
5
  logging.basicConfig(format='%(process)d-%(levelname)s-%(message)s')
6
+ logging.warning(' - 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.warning(' c_model = '+c_model)
37
  return c_model
38
+ c_model=models[i].path
39
+ logging.warning(' - c_model = '+c_model)
 
40
  return c_model
41
 
42
  sandbox = gr.Interface.load(