Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,9 @@ generator = pipeline('text-generation', model='gpt2')
|
|
26 |
# whisper model specification
|
27 |
model = whisper.load_model("tiny")
|
28 |
|
29 |
-
|
|
|
|
|
30 |
|
31 |
def inference(audio):
|
32 |
# load audio data
|
@@ -260,6 +262,7 @@ with block:
|
|
260 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
261 |
|
262 |
|
|
|
263 |
|
264 |
|
265 |
btn.click(inference, inputs=[audio], outputs=[text, community_icon, loading_icon, share_button])
|
|
|
26 |
# whisper model specification
|
27 |
model = whisper.load_model("tiny")
|
28 |
|
29 |
+
def buttonValues(value):
|
30 |
+
value = "Hello"
|
31 |
+
return value
|
32 |
|
33 |
def inference(audio):
|
34 |
# load audio data
|
|
|
262 |
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
263 |
|
264 |
|
265 |
+
buttonV = gr.Button(buttonValues(text))
|
266 |
|
267 |
|
268 |
btn.click(inference, inputs=[audio], outputs=[text, community_icon, loading_icon, share_button])
|