diff --git a/src/agentscope/studio/_app_online.py b/src/agentscope/studio/_app_online.py index d5295b6e7..eea1707f1 100644 --- a/src/agentscope/studio/_app_online.py +++ b/src/agentscope/studio/_app_online.py @@ -11,6 +11,7 @@ from typing import Tuple, Any from datetime import timedelta, datetime +import json5 import requests import oss2 from loguru import logger @@ -408,11 +409,9 @@ def create_gallery_pr(**kwargs: Any) -> Response: gallery_data = { "meta": meta_info, - "drawflow": data, + "drawflow": json5.loads(data), } - jwt_token = session.get("jwt_token") - payload = decode_jwt(jwt_token, secret_key=SECRET_KEY) jwt_token = session.get("jwt_token") payload = decode_jwt(jwt_token, secret_key=SECRET_KEY) access_token = payload.get("access_token") diff --git a/src/agentscope/studio/static/js/workstation.js b/src/agentscope/studio/static/js/workstation.js index 4d3b1a12e..9730445d7 100644 --- a/src/agentscope/studio/static/js/workstation.js +++ b/src/agentscope/studio/static/js/workstation.js @@ -2170,7 +2170,7 @@ function showContributePopup(userLogin) { - +