musaashaikh commited on
Commit
2dae3b3
·
verified ·
1 Parent(s): fab3803

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,8 +1,12 @@
1
  import gradio as gr
2
  import os
 
3
  from azure.ai.textanalytics import TextAnalyticsClient
4
  from azure.core.credentials import AzureKeyCredential
5
 
 
 
 
6
  # Azure Text Analytics setup
7
  # this is the end point for the Azure service I created
8
  azure_endpoint = "https://t6langservice.cognitiveservices.azure.com/"
 
1
  import gradio as gr
2
  import os
3
+ from dotenv import load_dotenv
4
  from azure.ai.textanalytics import TextAnalyticsClient
5
  from azure.core.credentials import AzureKeyCredential
6
 
7
+ # Load .env file
8
+ load_dotenv()
9
+
10
  # Azure Text Analytics setup
11
  # this is the end point for the Azure service I created
12
  azure_endpoint = "https://t6langservice.cognitiveservices.azure.com/"