Spaces:
Running
on
T4
Running
on
T4
gabrielchua
commited on
Commit
•
ba793e2
1
Parent(s):
17dad6c
remove zeroGPU
Browse files
app.py
CHANGED
@@ -46,7 +46,6 @@ def generate_podcast(
|
|
46 |
language: str
|
47 |
) -> Tuple[str, str]:
|
48 |
"""Generate the audio and transcript from the PDFs and/or URL."""
|
49 |
-
print(tone, voice, length, language)
|
50 |
text = ""
|
51 |
|
52 |
# Change language to the appropriate code
|
@@ -117,8 +116,7 @@ def generate_podcast(
|
|
117 |
total_characters = 0
|
118 |
|
119 |
for line in llm_output.dialogue:
|
120 |
-
|
121 |
-
logger.info(f"Generating audio for {line.speaker}: {line.text}")
|
122 |
if line.speaker == "Host (Jenna)":
|
123 |
speaker = f"**Jenna**: {line.text}"
|
124 |
else:
|
|
|
46 |
language: str
|
47 |
) -> Tuple[str, str]:
|
48 |
"""Generate the audio and transcript from the PDFs and/or URL."""
|
|
|
49 |
text = ""
|
50 |
|
51 |
# Change language to the appropriate code
|
|
|
116 |
total_characters = 0
|
117 |
|
118 |
for line in llm_output.dialogue:
|
119 |
+
logger.info(f"Generating audio for {line.speaker}, {language} and {voice}: {line.text}")
|
|
|
120 |
if line.speaker == "Host (Jenna)":
|
121 |
speaker = f"**Jenna**: {line.text}"
|
122 |
else:
|
utils.py
CHANGED
@@ -79,7 +79,6 @@ def parse_url(url: str) -> str:
|
|
79 |
response = requests.get(full_url, timeout=60)
|
80 |
return response.text
|
81 |
|
82 |
-
@spaces.GPU
|
83 |
def generate_audio(text: str, speaker: str, language: str, voice: str) -> str:
|
84 |
"""Generate audio using the local Parler TTS model or HuggingFace client."""
|
85 |
|
|
|
79 |
response = requests.get(full_url, timeout=60)
|
80 |
return response.text
|
81 |
|
|
|
82 |
def generate_audio(text: str, speaker: str, language: str, voice: str) -> str:
|
83 |
"""Generate audio using the local Parler TTS model or HuggingFace client."""
|
84 |
|