Spaces:
Build error
Build error
Commit
·
dab07cf
1
Parent(s):
0fad229
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,14 +6,7 @@ from transformers import Speech2TextProcessor, Speech2TextForConditionalGenerati
|
|
| 6 |
from gradio.mix import Parallel, Series
|
| 7 |
|
| 8 |
|
| 9 |
-
|
| 10 |
-
# processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr")
|
| 11 |
-
# inputs = processor(ds[0]["audio"]["array"], sampling_rate=ds[0]["audio"]["sampling_rate"], return_tensors="pt")
|
| 12 |
-
# generated_ids = model.generate(inputs["input_features"], attention_mask=inputs["attention_mask"])
|
| 13 |
-
# transcription = processor.batch_decode(generated_ids)
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
desc = "Is this working or what??"
|
| 17 |
|
| 18 |
def summarize(text):
|
| 19 |
summ = gr.Interface.load('huggingface/google/pegasus-large')
|
|
|
|
| 6 |
from gradio.mix import Parallel, Series
|
| 7 |
|
| 8 |
|
| 9 |
+
desc = "Summarize your text! (audio transcription available soon)"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def summarize(text):
|
| 12 |
summ = gr.Interface.load('huggingface/google/pegasus-large')
|