antfraia commited on
Commit
46bbfbc
·
1 Parent(s): 1634368

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,10 +1,9 @@
1
  import gradio as gr
2
  import requests
3
 
4
- # Directly using the API key as it will be deployed in a controlled environment
5
- API_KEY = "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"
6
- API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v2/whisper"
7
- HEADERS = {"Authorization": f"Bearer {API_KEY}"}
8
 
9
  def transcribe_audio(audio_path: str) -> str:
10
  # Read audio file
 
1
  import gradio as gr
2
  import requests
3
 
4
+ # Updated API Endpoint
5
+ API_URL = "https://api-inference.huggingface.co/models/openai/whisper-large-v2"
6
+ HEADERS = {"Authorization": "Bearer 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"}
 
7
 
8
  def transcribe_audio(audio_path: str) -> str:
9
  # Read audio file