jonathanagustin commited on
Commit
c26dbd3
·
verified ·
1 Parent(s): 00b645f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -21,14 +21,6 @@ logger.info(f"MODEL_ID: {MODEL_ID}")
21
  client = InferenceClient(token=HF_TOKEN) if HF_TOKEN else InferenceClient()
22
  logger.info("InferenceClient initialized")
23
 
24
- # Force dark mode
25
- FORCE_DARK_MODE = """
26
- function() {
27
- if (document.querySelectorAll('.dark').length === 0) {
28
- document.querySelector('body').classList.add('dark');
29
- }
30
- }
31
- """
32
 
33
 
34
  def transcribe(audio) -> str:
@@ -51,7 +43,7 @@ def transcribe(audio) -> str:
51
 
52
  logger.info("Building Gradio interface...")
53
 
54
- with gr.Blocks(title="Whisper Transcriber", js=FORCE_DARK_MODE) as demo:
55
  gr.Markdown("# 🎙️ Whisper Transcriber\nRecord your voice or upload an audio file to get a transcription.")
56
 
57
  with gr.Row(equal_height=True):
 
21
  client = InferenceClient(token=HF_TOKEN) if HF_TOKEN else InferenceClient()
22
  logger.info("InferenceClient initialized")
23
 
 
 
 
 
 
 
 
 
24
 
25
 
26
  def transcribe(audio) -> str:
 
43
 
44
  logger.info("Building Gradio interface...")
45
 
46
+ with gr.Blocks(title="Whisper Transcriber") as demo:
47
  gr.Markdown("# 🎙️ Whisper Transcriber\nRecord your voice or upload an audio file to get a transcription.")
48
 
49
  with gr.Row(equal_height=True):