nirajandhakal commited on
Commit
ca89278
1 Parent(s): 7bdeaf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -6,7 +6,6 @@ from transformers.pipelines.audio_utils import ffmpeg_read
6
  import tempfile
7
  import os
8
  import torch
9
- import time
10
 
11
  MODEL_NAME = "ylacombe/whisper-large-v3-turbo"
12
  BATCH_SIZE = 8
@@ -85,7 +84,7 @@ def yt_transcribe(yt_url, task, max_filesize=75.0):
85
  return html_embed_str, text
86
 
87
 
88
- demo = gr.Blocks(css=".container {max-width: 800px; margin: auto; }.gradio-container {background-color: #f9f9f9; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);}")
89
 
90
  mf_transcribe = gr.Interface(
91
  fn=transcribe,
@@ -101,7 +100,6 @@ mf_transcribe = gr.Interface(
101
  " of arbitrary length."
102
  ),
103
  allow_flagging="never",
104
- css=".gradio-container {background-color: #f9f9f9; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);}",
105
  )
106
 
107
  file_transcribe = gr.Interface(
@@ -118,7 +116,6 @@ file_transcribe = gr.Interface(
118
  " arbitrary length."
119
  ),
120
  allow_flagging="never",
121
- css=".gradio-container {background-color: #f9f9f9; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);}",
122
  )
123
 
124
  yt_transcribe = gr.Interface(
@@ -135,7 +132,6 @@ yt_transcribe = gr.Interface(
135
  " arbitrary length."
136
  ),
137
  allow_flagging="never",
138
- css=".gradio-container {background-color: #f9f9f9; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);}",
139
  )
140
 
141
  with demo:
 
6
  import tempfile
7
  import os
8
  import torch
 
9
 
10
  MODEL_NAME = "ylacombe/whisper-large-v3-turbo"
11
  BATCH_SIZE = 8
 
84
  return html_embed_str, text
85
 
86
 
87
+ demo = gr.Blocks()
88
 
89
  mf_transcribe = gr.Interface(
90
  fn=transcribe,
 
100
  " of arbitrary length."
101
  ),
102
  allow_flagging="never",
 
103
  )
104
 
105
  file_transcribe = gr.Interface(
 
116
  " arbitrary length."
117
  ),
118
  allow_flagging="never",
 
119
  )
120
 
121
  yt_transcribe = gr.Interface(
 
132
  " arbitrary length."
133
  ),
134
  allow_flagging="never",
 
135
  )
136
 
137
  with demo: