Jiangxz01 commited on
Commit
633a5bc
·
verified ·
1 Parent(s): 5db6f6a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -79,12 +79,10 @@ Follow this example structure, MUST be in {language} language:
79
  try:
80
  podcast_match = re.search(r'{(.*?)}', response.choices[0].message.content, re.DOTALL)
81
  if podcast_match:
82
- podcast_content = podcast_match.group(0)
83
- podcast_dict = json.loads(podcast_content)
84
-
85
- # 創建新的 JSON 格式
86
  podcast_json = {
87
- "topic": input_text[:30] + "..." if len(input_text) > 30 else input_text,
88
  "podcast": []
89
  }
90
 
 
79
  try:
80
  podcast_match = re.search(r'{(.*?)}', response.choices[0].message.content, re.DOTALL)
81
  if podcast_match:
82
+ podcast_dict = json.loads(podcast_match)
83
+
 
 
84
  podcast_json = {
85
+ "topic": "AGI",
86
  "podcast": []
87
  }
88