Spaces:
Runtime error
Runtime error
jpdiazpardo
commited on
Commit
•
cf89629
1
Parent(s):
7261c55
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ title = "Scream: Fine-Tuned Whisper model for automatic gutural speech recogniti
|
|
49 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", top_k=None)
|
50 |
|
51 |
#Functions-----------------------------------------------------------------------------------------------------------------------
|
52 |
-
def transcribe(link,thumbnail,file,use_timestamps,sentiment_analysis):#file, return_timestamps, *kwargs):
|
53 |
'''inputs: file, return_timestamps'''
|
54 |
outputs = pipe(file, batch_size=BATCH_SIZE, generate_kwargs={"task": 'transcribe'}, return_timestamps=True)
|
55 |
text = outputs["text"]
|
|
|
49 |
classifier = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base", top_k=None)
|
50 |
|
51 |
#Functions-----------------------------------------------------------------------------------------------------------------------
|
52 |
+
def transcribe(link,download,thumbnail,file,use_timestamps,sentiment_analysis):#file, return_timestamps, *kwargs):
|
53 |
'''inputs: file, return_timestamps'''
|
54 |
outputs = pipe(file, batch_size=BATCH_SIZE, generate_kwargs={"task": 'transcribe'}, return_timestamps=True)
|
55 |
text = outputs["text"]
|