Spaces:
Running
Running
Upload app.py
Browse files
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 |
-
|
83 |
-
|
84 |
-
|
85 |
-
# 創建新的 JSON 格式
|
86 |
podcast_json = {
|
87 |
-
"topic":
|
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 |
|