Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|