Spaces:
Runtime error
Runtime error
remove freeGPU spaces
Browse files- app.py +0 -2
- requirements.txt +0 -1
app.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
import torch
|
| 2 |
-
import spaces
|
| 3 |
|
| 4 |
import gradio as gr
|
| 5 |
import pytube as pt
|
|
@@ -19,7 +18,6 @@ pipe = pipeline(
|
|
| 19 |
|
| 20 |
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
| 21 |
|
| 22 |
-
@spaces.GPU
|
| 23 |
def transcribe(microphone, file_upload):
|
| 24 |
warn_output = ""
|
| 25 |
if (microphone is not None) and (file_upload is not None):
|
|
|
|
| 1 |
import torch
|
|
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
import pytube as pt
|
|
|
|
| 18 |
|
| 19 |
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
| 20 |
|
|
|
|
| 21 |
def transcribe(microphone, file_upload):
|
| 22 |
warn_output = ""
|
| 23 |
if (microphone is not None) and (file_upload is not None):
|
requirements.txt
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
git+https://github.com/huggingface/transformers
|
| 2 |
torch
|
| 3 |
pytube
|
| 4 |
-
spaces
|
|
|
|
| 1 |
git+https://github.com/huggingface/transformers
|
| 2 |
torch
|
| 3 |
pytube
|
|
|