XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update LMArena.py

f13a4fc7
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +0 -13
Modified g4f/Provider/needs_auth/LMArena.py +0 -13
@@ -682,16 +682,3 @@ def get_content_type(url: str) -> str:
682 682 return "image/jpeg"
683 683 else:
684 684 return "application/octet-stream"
685
686 async def switch_to_frame(browser, frame_id):
687 """
688 change iframe
689 let iframe = document.querySelector("YOUR_IFRAME_SELECTOR")
690 let iframe_tab = iframe.contentWindow.document.body;
691 """
692 iframe_tab = next(
693 filter(
694 lambda x: str(x.target.target_id) == str(frame_id), browser.targets
695 )
696 )
697 return iframe_tab