Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
| 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.
|
| 37 |
return c_model
|
| 38 |
-
|
| 39 |
-
|
| 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(
|