youngtsai commited on
Commit
923839a
·
verified ·
1 Parent(s): 89b5f28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.Number(label="輸入全班的號碼上限"),
14
- outputs="text",
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
  )