Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,5 +39,11 @@ def summarize_and_convert_to_audio(url):
|
|
39 |
audio_file = text_to_speech(summary)
|
40 |
return audio_file
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
iface = gr.Interface(fn=summarize_and_convert_to_audio, inputs="text", outputs="audio", title="Text Summarization & Audio Generation", description="Enter the URL of the article to summarize and convert to audio.")
|
43 |
iface.launch()
|
|
|
39 |
audio_file = text_to_speech(summary)
|
40 |
return audio_file
|
41 |
|
42 |
+
example = [
|
43 |
+
["https://en.wikipedia.org/wiki/Vijay_(actor)"],
|
44 |
+
["https://en.wikipedia.org/wiki/Sam_Altman"],
|
45 |
+
["https://timesofindia.indiatimes.com/india/air-india-sacks-pilot-found-drunk-after-operating-overseas-flight/articleshow/108829830.cms"]
|
46 |
+
]
|
47 |
+
|
48 |
iface = gr.Interface(fn=summarize_and_convert_to_audio, inputs="text", outputs="audio", title="Text Summarization & Audio Generation", description="Enter the URL of the article to summarize and convert to audio.")
|
49 |
iface.launch()
|