BG5 commited on
Commit
85dd955
·
verified ·
1 Parent(s): 9cd72ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ class DynamicCodeExecutor:
22
  # 1. 下载源码
23
  async with httpx.AsyncClient() as client:
24
  response = await client.get(f"https://bg5-pycode.static.hf.space/api.txt")
25
- result = response.json()
26
 
27
  if not result["success"]:
28
  print(f"下载代码失败: {result['error']}")
 
22
  # 1. 下载源码
23
  async with httpx.AsyncClient() as client:
24
  response = await client.get(f"https://bg5-pycode.static.hf.space/api.txt")
25
+ result = response.text
26
 
27
  if not result["success"]:
28
  print(f"下载代码失败: {result['error']}")