Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -238,8 +238,7 @@ Now format the following:
|
|
238 |
return self.create_fallback_podcast(text)
|
239 |
|
240 |
def conversation_to_json(self, text: str) -> Dict:
|
241 |
-
|
242 |
-
def conversation_to_json(self, text: str) -> Dict:
|
243 |
"""Convert speaker-formatted text to podcast JSON structure"""
|
244 |
# Allow leading whitespace and enforce full line match
|
245 |
lines = re.findall(r'^\s*Speaker\s*([12])\s*:\s*(.+)', text, flags=re.MULTILINE)
|
|
|
238 |
return self.create_fallback_podcast(text)
|
239 |
|
240 |
def conversation_to_json(self, text: str) -> Dict:
|
241 |
+
|
|
|
242 |
"""Convert speaker-formatted text to podcast JSON structure"""
|
243 |
# Allow leading whitespace and enforce full line match
|
244 |
lines = re.findall(r'^\s*Speaker\s*([12])\s*:\s*(.+)', text, flags=re.MULTILINE)
|