Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
import os
|
2 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
API_KEY=os.environ.get('HUGGING_FACE_HUB_TOKEN', None)
|
5 |
article = """---
|
|
|
1 |
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 = """---
|