Update app.py
Browse files
app.py
CHANGED
|
@@ -105,6 +105,7 @@ def make_prediction(data):
|
|
| 105 |
#print(f"Prediction: {prediction}")
|
| 106 |
|
| 107 |
import gradio as gr
|
|
|
|
| 108 |
|
| 109 |
# Create Gradio interface with relevant inputs
|
| 110 |
interface = gr.Interface(
|
|
@@ -115,7 +116,7 @@ interface = gr.Interface(
|
|
| 115 |
# Input for map
|
| 116 |
gr.Dropdown(label="Map", choices=maps),
|
| 117 |
# Input for agents
|
| 118 |
-
|
| 119 |
],
|
| 120 |
outputs="text",
|
| 121 |
)
|
|
|
|
| 105 |
#print(f"Prediction: {prediction}")
|
| 106 |
|
| 107 |
import gradio as gr
|
| 108 |
+
import gradio_client as gc
|
| 109 |
|
| 110 |
# Create Gradio interface with relevant inputs
|
| 111 |
interface = gr.Interface(
|
|
|
|
| 116 |
# Input for map
|
| 117 |
gr.Dropdown(label="Map", choices=maps),
|
| 118 |
# Input for agents
|
| 119 |
+
gc.MultiSelect(label="Agent Picks (1-5)", choices=agents),
|
| 120 |
],
|
| 121 |
outputs="text",
|
| 122 |
)
|