Jiangxz01 commited on
Commit
c8f9382
·
verified ·
1 Parent(s): 7df7a2b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 江信宗")