Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,8 @@ def draw_lots(max_number):
|
|
10 |
# 建立 Gradio 介面
|
11 |
iface = gr.Interface(
|
12 |
fn=draw_lots,
|
13 |
-
inputs=gr.
|
14 |
-
outputs="
|
15 |
title="抽籤系統",
|
16 |
description="輸入全班的號碼上限,系統將隨機選出一個號碼"
|
17 |
)
|
|
|
10 |
# 建立 Gradio 介面
|
11 |
iface = gr.Interface(
|
12 |
fn=draw_lots,
|
13 |
+
inputs=gr.Number(label="輸入全班的號碼上限"),
|
14 |
+
outputs=gr.Textbox(label="中獎號碼"),
|
15 |
title="抽籤系統",
|
16 |
description="輸入全班的號碼上限,系統將隨機選出一個號碼"
|
17 |
)
|