forked from xcaj1/biliTickerBuy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (26 loc) · 927 Bytes
/
main.py
File metadata and controls
35 lines (26 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from loguru import logger
import gradio as gr
from tab.go import go_tab
from tab.settings import setting_tab
from tab.train import train_tab
header = """
# B 站会员购抢票🌈
⚠️此项目仅用于个人参考学习,切勿进行盈利,所造成的后果与本人无关。
"""
short_js = """
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js" rel="external nofollow"></script>
<script src="https://static.geetest.com/static/js/gt.0.4.9.js"></script>
"""
if __name__ == "__main__":
logger.add("app.log")
with gr.Blocks(head=short_js) as demo:
gr.Markdown(header)
with gr.Tab("配置"):
setting_tab()
with gr.Tab("抢票"):
go_tab()
with gr.Tab("训练你的验证码速度"):
train_tab()
# 运行应用
print("点击下面的网址运行程序 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓")
demo.launch()