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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -2,8 +2,8 @@ import os
2
  import gradio as gr
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,10 +33,8 @@ 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.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(
@@ -48,5 +46,5 @@ sandbox = gr.Interface.load(
48
  article=article,
49
  api_key=API_KEY
50
  )
51
-
52
- sandbox.queue(concurrency_count=20).launch()
 
2
  import gradio as gr
3
  import logging
4
 
5
+ logging.basicConfig(level = logging.DEBUG, 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
  return c_model
37
  c_model=models[i].path
 
38
  return c_model
39
 
40
  sandbox = gr.Interface.load(
 
46
  article=article,
47
  api_key=API_KEY
48
  )
49
+ logging.debug(' - model = '+custom_model)
50
+ sandbox.queue(concurrency_count=20).launch()