Update app.py
Browse files
app.py
CHANGED
|
@@ -46,10 +46,10 @@ app = DiceProbabilityApp()
|
|
| 46 |
iface = gr.Interface(
|
| 47 |
fn=app.roll_dice,
|
| 48 |
inputs=[
|
| 49 |
-
gr.
|
| 50 |
-
gr.
|
| 51 |
-
gr.
|
| 52 |
-
gr.
|
| 53 |
],
|
| 54 |
outputs="text",
|
| 55 |
live=True,
|
|
|
|
| 46 |
iface = gr.Interface(
|
| 47 |
fn=app.roll_dice,
|
| 48 |
inputs=[
|
| 49 |
+
gr.Dropdown(choices=app.valid_faces, label="Chọn mặt xúc xắc 1"),
|
| 50 |
+
gr.Dropdown(choices=app.valid_faces, label="Chọn mặt xúc xắc 2"),
|
| 51 |
+
gr.Dropdown(choices=app.valid_faces, label="Chọn mặt xúc xắc 3"),
|
| 52 |
+
gr.Dropdown(choices=["1", "3", "5", "10"], label="Số lần lắc")
|
| 53 |
],
|
| 54 |
outputs="text",
|
| 55 |
live=True,
|