Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- README.md +2 -26
- podcastfy-app/app.py +4 -3
README.md
CHANGED
@@ -8,29 +8,5 @@ header: mini
|
|
8 |
---
|
9 |
# Podcastfy.ai demo
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
Transforming Multi-Sourced Text into Captivating Multi-Lingual Audio Conversations with GenAI
|
14 |
-
|
15 |
-
https://github.com/user-attachments/assets/f1559e70-9cf9-4576-b48b-87e7dad1dd0b
|
16 |
-
|
17 |
-
Try [HuggingFace 🤗 space app](https://huggingface.co/spaces/thatupiso/Podcastfy.ai_demo) for a simple use case (URLs -> Audio).
|
18 |
-
|
19 |
-
See [Open Source Python package](https://www.podcastfy.ai) and CLI at the original github repo for full customization options.
|
20 |
-
|
21 |
-
WARNING: This UI App was not as thoroughly tested as the underlying Python package.
|
22 |
-
|
23 |
-
## Audio Examples
|
24 |
-
|
25 |
-
This sample collection is also [available at audio.com](https://audio.com/thatupiso/collections/podcastfy):
|
26 |
-
- [English] Youtube Video from YCombinator on LLMs: ([audio](https://audio.com/thatupiso/audio/ycombinator-llms) | [youtube](https://www.youtube.com/watch?v=eBVi_sLaYsc))
|
27 |
-
- [English] Book pdf Networks, Crowds, and Markets: [audio](https://audio.com/thatupiso/audio/networks)
|
28 |
-
- [English] Research paper on Climate Change in France: ([audio](https://audio.com/thatupiso/audio/agro-paper) | [pdf](./data/pdf/s41598-024-58826-w.pdf))
|
29 |
-
- [English] Personal website: ([audio](https://audio.com/thatupiso/audio/tharsis) | [website](https://www.souzatharsis.com))
|
30 |
-
- [English] Personal website + youtube video: ([audio](https://audio.com/thatupiso/audio/tharsis-ai) | [website](https://www.souzatharsis.com) | [youtube](https://www.youtube.com/watch?v=sJE1dE2dulg))
|
31 |
-
- [French] Website: ([audio](https://audio.com/thatupiso/audio/podcast-fr-agro) | [website](https://agroclim.inrae.fr/))
|
32 |
-
- [Portuguese-BR] News article: ([audio](https://audio.com/thatupiso/audio/podcast-thatupiso-br) | [website](https://noticias.uol.com.br/eleicoes/2024/10/03/nova-pesquisa-datafolha-quem-subiu-e-quem-caiu-na-disputa-de-sp-03-10.htm))
|
33 |
-
|
34 |
-
## Disclaimer
|
35 |
-
|
36 |
-
This tool is designed for personal or educational use. Please ensure you have the necessary rights or permissions before using content from external sources for podcast creation. All audio content is AI-generated and it is not intended to clone real-life humans!
|
|
|
8 |
---
|
9 |
# Podcastfy.ai demo
|
10 |
|
11 |
+
- Hugging Face Space [Web App](https://huggingface.co/spaces/thatupiso/Podcastfy.ai_demo)
|
12 |
+
- Open Source [Python package](https://www.podcastfy.ai)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
podcastfy-app/app.py
CHANGED
@@ -34,6 +34,10 @@ def process_inputs(
|
|
34 |
creativity_level,
|
35 |
user_instructions
|
36 |
):
|
|
|
|
|
|
|
|
|
37 |
try:
|
38 |
logger.info("Starting podcast generation process")
|
39 |
|
@@ -57,9 +61,6 @@ def process_inputs(
|
|
57 |
urls = [url.strip() for url in urls_input.split('\n') if url.strip()]
|
58 |
logger.debug(f"Processed URLs: {urls}")
|
59 |
|
60 |
-
temp_files = []
|
61 |
-
temp_dirs = []
|
62 |
-
|
63 |
# Handle PDF files
|
64 |
if pdf_files is not None and len(pdf_files) > 0:
|
65 |
logger.info(f"Processing {len(pdf_files)} PDF files")
|
|
|
34 |
creativity_level,
|
35 |
user_instructions
|
36 |
):
|
37 |
+
# Initialize temp lists outside try block
|
38 |
+
temp_files = []
|
39 |
+
temp_dirs = []
|
40 |
+
|
41 |
try:
|
42 |
logger.info("Starting podcast generation process")
|
43 |
|
|
|
61 |
urls = [url.strip() for url in urls_input.split('\n') if url.strip()]
|
62 |
logger.debug(f"Processed URLs: {urls}")
|
63 |
|
|
|
|
|
|
|
64 |
# Handle PDF files
|
65 |
if pdf_files is not None and len(pdf_files) > 0:
|
66 |
logger.info(f"Processing {len(pdf_files)} PDF files")
|