Update app.py
Browse files
app.py
CHANGED
@@ -45,4 +45,16 @@ def predict_lottery(year, period, num1, num2, num3, num4, num5, num6, special):
|
|
45 |
# **📌 Gradio Web 界面**
|
46 |
iface = gr.Interface(
|
47 |
fn=predict_lottery,
|
48 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
# **📌 Gradio Web 界面**
|
46 |
iface = gr.Interface(
|
47 |
fn=predict_lottery,
|
48 |
+
inputs=[
|
49 |
+
gr.Number(label="年份"), gr.Number(label="期数"),
|
50 |
+
gr.Number(label="号码1"), gr.Number(label="号码2"), gr.Number(label="号码3"),
|
51 |
+
gr.Number(label="号码4"), gr.Number(label="号码5"), gr.Number(label="号码6"),
|
52 |
+
gr.Number(label="特别号码")
|
53 |
+
],
|
54 |
+
outputs="text",
|
55 |
+
title="六合彩预测模型",
|
56 |
+
description="输入期号和历史开奖号码,预测指定期开奖的号码"
|
57 |
+
)
|
58 |
+
|
59 |
+
# **📌 启动 Gradio 应用**
|
60 |
+
iface.launch(share=True)
|