Spaces:
Runtime error
Runtime error
RamAnanth1
commited on
Commit
·
60136f9
1
Parent(s):
8d2cd0e
Fix missing im[
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import os
|
|
3 |
import json
|
4 |
import requests
|
5 |
import time
|
6 |
-
import pandas as pd
|
|
|
7 |
|
8 |
# AssemblyAI transcript endpoint (where we submit the file)
|
9 |
transcript_endpoint = "https://api.assemblyai.com/v2/transcript"
|
@@ -234,7 +235,7 @@ with gr.Blocks() as demo:
|
|
234 |
b1.click(get_transcript_url, [inputs], [transcript, summary, sentiment_analysis,topic_detection])
|
235 |
b2.click(get_audio_from_upload, audio_input)
|
236 |
|
237 |
-
examples = gr.Examples(examples = [["https://github.com/AssemblyAI-Examples/assemblyai-and-python-in-5-minutes/blob/main/audio.mp3?raw=true"]], inputs = inputs, outputs=[transcript, summary, sentiment_analysis, topic_detection], cache_examples = True, fn = get_transcript_url)
|
238 |
|
239 |
|
240 |
demo.queue().launch(debug=True)
|
|
|
3 |
import json
|
4 |
import requests
|
5 |
import time
|
6 |
+
import pandas as pd
|
7 |
+
import io
|
8 |
|
9 |
# AssemblyAI transcript endpoint (where we submit the file)
|
10 |
transcript_endpoint = "https://api.assemblyai.com/v2/transcript"
|
|
|
235 |
b1.click(get_transcript_url, [inputs], [transcript, summary, sentiment_analysis,topic_detection])
|
236 |
b2.click(get_audio_from_upload, audio_input)
|
237 |
|
238 |
+
#examples = gr.Examples(examples = [["https://github.com/AssemblyAI-Examples/assemblyai-and-python-in-5-minutes/blob/main/audio.mp3?raw=true"]], inputs = inputs, outputs=[transcript, summary, sentiment_analysis, topic_detection], cache_examples = True, fn = get_transcript_url)
|
239 |
|
240 |
|
241 |
demo.queue().launch(debug=True)
|