Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ Follow this example structure, MUST be in {language} language:
|
|
86 |
raise gr.Error("Rate limit exceeded for the API key. Please try again later or provide your own API key.")
|
87 |
else:
|
88 |
raise gr.Error(f"Failed to generate podcast script: {e}")
|
89 |
-
return podcast_match.group(0)
|
90 |
|
91 |
with gr.Blocks() as iface:
|
92 |
gr.Markdown("# 🎙️ Generated Podcast Audio. Deployed by 江信宗")
|
|
|
86 |
raise gr.Error("Rate limit exceeded for the API key. Please try again later or provide your own API key.")
|
87 |
else:
|
88 |
raise gr.Error(f"Failed to generate podcast script: {e}")
|
89 |
+
return json.loads(podcast_match.group(0))
|
90 |
|
91 |
with gr.Blocks() as iface:
|
92 |
gr.Markdown("# 🎙️ Generated Podcast Audio. Deployed by 江信宗")
|