Update app.py
Browse files
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.
|
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']}")
|