Spaces:
Sleeping
Sleeping
Commit
•
bbef1a2
1
Parent(s):
6373f8d
add code
Browse files
app.py
CHANGED
@@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import base64
|
2 |
import io
|
3 |
import os
|
|
|
1 |
+
import logging
|
2 |
+
|
3 |
+
# Configure the root logger to WARNING to suppress debug messages from other libraries
|
4 |
+
logging.basicConfig(level=logging.WARNING)
|
5 |
+
|
6 |
+
# Create a console handler
|
7 |
+
console_handler = logging.StreamHandler()
|
8 |
+
console_handler.setLevel(logging.DEBUG)
|
9 |
+
|
10 |
+
# Create a formatter
|
11 |
+
formatter = logging.Formatter("%(name)s - %(levelname)s - %(message)s")
|
12 |
+
console_handler.setFormatter(formatter)
|
13 |
+
|
14 |
+
# Configure the logger for your specific library
|
15 |
+
logger = logging.getLogger("gradio_webrtc")
|
16 |
+
logger.setLevel(logging.DEBUG)
|
17 |
+
logger.addHandler(console_handler)
|
18 |
+
|
19 |
+
|
20 |
import base64
|
21 |
import io
|
22 |
import os
|