Spaces:
Paused
Paused
Diksha2001
commited on
Commit
•
be3b9e4
1
Parent(s):
79a8be6
Update handler.py
Browse files- handler.py +8 -1
handler.py
CHANGED
@@ -8,7 +8,14 @@ import time
|
|
8 |
import subprocess
|
9 |
from typing import Dict, Any
|
10 |
from azure.storage.blob import BlobServiceClient
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
def get_azure_connection_string():
|
13 |
"""Get Azure connection string from environment variable"""
|
14 |
conn_string = "DefaultEndpointsProtocol=https;AccountName=transcribedblobstorage;AccountKey=1Z7yKPP5DLbxnoHdh7NmHgwg3dFLaDiYHUELdid7dzfzR6/DvkZnnzpJ30lrXIMhtD5GYKo+71jP+AStC1TEvA==;EndpointSuffix=core.windows.net"
|
|
|
8 |
import subprocess
|
9 |
from typing import Dict, Any
|
10 |
from azure.storage.blob import BlobServiceClient
|
11 |
+
# Modify logging configuration to print to console and file
|
12 |
+
logging.basicConfig(
|
13 |
+
level=logging.DEBUG, # Change to DEBUG to capture more detailed logs
|
14 |
+
format='%(asctime)s - %(levelname)s - %(message)s',
|
15 |
+
handlers=[
|
16 |
+
logging.StreamHandler() # Add stream handler to print to console
|
17 |
+
]
|
18 |
+
)
|
19 |
def get_azure_connection_string():
|
20 |
"""Get Azure connection string from environment variable"""
|
21 |
conn_string = "DefaultEndpointsProtocol=https;AccountName=transcribedblobstorage;AccountKey=1Z7yKPP5DLbxnoHdh7NmHgwg3dFLaDiYHUELdid7dzfzR6/DvkZnnzpJ30lrXIMhtD5GYKo+71jP+AStC1TEvA==;EndpointSuffix=core.windows.net"
|