Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,11 @@ from azure.storage.blob import BlobServiceClient
|
|
4 |
import requests
|
5 |
from azure.identity import DefaultAzureCredential
|
6 |
|
7 |
-
# Initialize Azure Cosmos DB Client
|
8 |
-
|
|
|
|
|
|
|
9 |
blob_service = BlobServiceClient.from_connection_string('<your_blob_storage_connection_string>')
|
10 |
|
11 |
# Streamlit UI
|
|
|
4 |
import requests
|
5 |
from azure.identity import DefaultAzureCredential
|
6 |
|
7 |
+
# Initialize Azure Cosmos DB Client and Blob Service Client
|
8 |
+
from azure.cosmos import AzureKeyCredential
|
9 |
+
account_url = "https://your-account-name.documents.azure.com:443/" # Replace with your Cosmos account URL
|
10 |
+
account_key = "your-account-key" # Replace with your Cosmos account key
|
11 |
+
cosmos_client = CosmosClient(account_url, credential=AzureKeyCredential(account_key))
|
12 |
blob_service = BlobServiceClient.from_connection_string('<your_blob_storage_connection_string>')
|
13 |
|
14 |
# Streamlit UI
|