Spaces:
Runtime error
Runtime error
jpdiazpardo
commited on
Commit
•
bf4be95
1
Parent(s):
fab6d17
Update app.py
Browse files
app.py
CHANGED
@@ -81,11 +81,11 @@ def download(link):
|
|
81 |
subprocess.run(['python3', 'youtubetowav.py', link])
|
82 |
return thumbnail.update(value=embed_html.replace("YOUTUBE_ID",get_youtube_video_id(link)))
|
83 |
|
84 |
-
def hide_sentiment(value):
|
85 |
-
if value == True:
|
86 |
-
return sentiment_plot.update(visible=True), sentiment_frequency.update(visible=True)
|
87 |
-
else:
|
88 |
-
return sentiment_plot.update(visible=False), sentiment_frequency.update(visible=False)
|
89 |
|
90 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
91 |
|
@@ -97,7 +97,7 @@ download_button = gr.Button(value="Download") #1
|
|
97 |
thumbnail = gr.HTML(value="", label = "Thumbnail") #2
|
98 |
audio_input = gr.Audio(source="upload", type="filepath", label="Upload audio file for transcription") #3
|
99 |
timestamp_checkbox = gr.Checkbox(value=True, label="Return timestamps") #4
|
100 |
-
sentiment_checkbox = gr.Checkbox(value=True, label="Sentiment analysis") #5
|
101 |
|
102 |
inputs = [yt_link, #0
|
103 |
download_button, #1
|
|
|
81 |
subprocess.run(['python3', 'youtubetowav.py', link])
|
82 |
return thumbnail.update(value=embed_html.replace("YOUTUBE_ID",get_youtube_video_id(link)))
|
83 |
|
84 |
+
#def hide_sentiment(value):
|
85 |
+
# if value == True:
|
86 |
+
# return sentiment_plot.update(visible=True), sentiment_frequency.update(visible=True)
|
87 |
+
# else:
|
88 |
+
# return sentiment_plot.update(visible=False), sentiment_frequency.update(visible=False)
|
89 |
|
90 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
91 |
|
|
|
97 |
thumbnail = gr.HTML(value="", label = "Thumbnail") #2
|
98 |
audio_input = gr.Audio(source="upload", type="filepath", label="Upload audio file for transcription") #3
|
99 |
timestamp_checkbox = gr.Checkbox(value=True, label="Return timestamps") #4
|
100 |
+
#sentiment_checkbox = gr.Checkbox(value=True, label="Sentiment analysis") #5
|
101 |
|
102 |
inputs = [yt_link, #0
|
103 |
download_button, #1
|