Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ API_URL = 'https://qe55p8afio98s0u3.us-east-1.aws.endpoints.huggingface.cloud'
|
|
| 60 |
API_KEY = os.getenv('API_KEY')
|
| 61 |
MODEL1="meta-llama/Llama-2-7b-chat-hf"
|
| 62 |
MODEL1URL="https://huggingface.co/meta-llama/Llama-2-7b-chat-hf"
|
| 63 |
-
HF_KEY = os.getenv('
|
| 64 |
headers = {
|
| 65 |
"Authorization": f"Bearer {HF_KEY}",
|
| 66 |
"Content-Type": "application/json"
|
|
@@ -1615,7 +1615,7 @@ API_URL_IE = f'https://tonpixzfvq3791u9.us-east-1.aws.endpoints.huggingface.clou
|
|
| 1615 |
API_URL_IE = "https://api-inference.huggingface.co/models/openai/whisper-small.en"
|
| 1616 |
MODEL2 = "openai/whisper-small.en"
|
| 1617 |
MODEL2_URL = "https://huggingface.co/openai/whisper-small.en"
|
| 1618 |
-
HF_KEY = st.secrets['
|
| 1619 |
headers = {
|
| 1620 |
"Authorization": f"Bearer {HF_KEY}",
|
| 1621 |
"Content-Type": "audio/wav"
|
|
|
|
| 60 |
API_KEY = os.getenv('API_KEY')
|
| 61 |
MODEL1="meta-llama/Llama-2-7b-chat-hf"
|
| 62 |
MODEL1URL="https://huggingface.co/meta-llama/Llama-2-7b-chat-hf"
|
| 63 |
+
HF_KEY = os.getenv('HF_KEY_0721')
|
| 64 |
headers = {
|
| 65 |
"Authorization": f"Bearer {HF_KEY}",
|
| 66 |
"Content-Type": "application/json"
|
|
|
|
| 1615 |
API_URL_IE = "https://api-inference.huggingface.co/models/openai/whisper-small.en"
|
| 1616 |
MODEL2 = "openai/whisper-small.en"
|
| 1617 |
MODEL2_URL = "https://huggingface.co/openai/whisper-small.en"
|
| 1618 |
+
HF_KEY = st.secrets['HF_KEY_0721']
|
| 1619 |
headers = {
|
| 1620 |
"Authorization": f"Bearer {HF_KEY}",
|
| 1621 |
"Content-Type": "audio/wav"
|