lijiacai commited on
Commit
6946dd2
1 Parent(s): b8b0c1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -39,10 +39,11 @@ menu = {
39
  "link": "https://lijiacai-translate.hf.space",
40
  "desc": "",
41
  },
42
- "工具-下载工具 by@未知":
43
  {
44
  "link": "https://zh.savefrom.net/226/",
45
  "desc": "",
 
46
  },
47
  # "Openai代理接口文档 by@lijiacai":
48
  # {
@@ -68,7 +69,7 @@ st.markdown(
68
  '<style>.full-height-iframe {height: 100vh;width: 100vh;min-width: 100vh} </style>',
69
  unsafe_allow_html=True
70
  )
71
-
72
  # 在一个具有自定义样式的div中嵌入IFrame
73
- st.markdown(f'<div class="full-height-iframe"><iframe src="{nav_link}" class="full-height-iframe"></iframe></div>',
74
  unsafe_allow_html=True)
 
39
  "link": "https://lijiacai-translate.hf.space",
40
  "desc": "",
41
  },
42
+ "工具-视频下载工具 by@未知":
43
  {
44
  "link": "https://zh.savefrom.net/226/",
45
  "desc": "",
46
+ "web": False
47
  },
48
  # "Openai代理接口文档 by@lijiacai":
49
  # {
 
69
  '<style>.full-height-iframe {height: 100vh;width: 100vh;min-width: 100vh} </style>',
70
  unsafe_allow_html=True
71
  )
72
+ if menu.get(selected).get("web"):
73
  # 在一个具有自定义样式的div中嵌入IFrame
74
+ st.markdown(f'<div class="full-height-iframe"><iframe src="{nav_link}" class="full-height-iframe"></iframe></div>',
75
  unsafe_allow_html=True)