Hieucyber2208 commited on
Commit
58e96a5
·
verified ·
1 Parent(s): 4fdaf10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -11,7 +11,9 @@ import os
11
  import subprocess
12
  from huggingface_hub import InferenceClient
13
  import google.generativeai as genai
 
14
 
 
15
  # Load API Keys từ biến môi trường
16
  HF_TOKEN = os.getenv("HF_TOKEN") # Hugging Face API Key
17
  GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY") # Google API Key
 
11
  import subprocess
12
  from huggingface_hub import InferenceClient
13
  import google.generativeai as genai
14
+ from dotenv import load_dotenv
15
 
16
+ load_dotenv()
17
  # Load API Keys từ biến môi trường
18
  HF_TOKEN = os.getenv("HF_TOKEN") # Hugging Face API Key
19
  GOOGLE_API_KEY = os.getenv("GOOGLE_API_KEY") # Google API Key