shohabbosdev commited on
Commit
c4959fc
·
verified ·
1 Parent(s): b29ceaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -2,7 +2,8 @@ import requests
2
  import gradio as gr
3
  import time
4
  from pydub import AudioSegment
5
-
 
6
  API_URL = "https://api-inference.huggingface.co/models/oyqiz/uzbek_stt_1_version"
7
  headers = {"Authorization": f"Bearer {api_key}"}
8
 
 
2
  import gradio as gr
3
  import time
4
  from pydub import AudioSegment
5
+ import os
6
+ api_key = os.getenv("TOKEN")
7
  API_URL = "https://api-inference.huggingface.co/models/oyqiz/uzbek_stt_1_version"
8
  headers = {"Authorization": f"Bearer {api_key}"}
9