Fix Bugs Gradio
Browse files
app.py
CHANGED
|
@@ -71,10 +71,10 @@ def recommend(opponent_formation):
|
|
| 71 |
# Create the Gradio interface
|
| 72 |
iface = gr.Interface(
|
| 73 |
fn=recommend,
|
| 74 |
-
inputs=gr.
|
| 75 |
outputs=[
|
| 76 |
-
gr.
|
| 77 |
-
gr.
|
| 78 |
],
|
| 79 |
title="Deepfield Proyecto Maradona E3 Football Formation Recommender",
|
| 80 |
description="Enter the opponent formation to get the recommended formation and a list of evaluated formations with their scores."
|
|
|
|
| 71 |
# Create the Gradio interface
|
| 72 |
iface = gr.Interface(
|
| 73 |
fn=recommend,
|
| 74 |
+
inputs=gr.Textbox(lines=1, placeholder="Enter opponent formation (e.g., '3-4-2-1')"),
|
| 75 |
outputs=[
|
| 76 |
+
gr.Textbox(label="Recommended Formation"),
|
| 77 |
+
gr.Dataframe(headers=["Formation", "Score"], label="Evaluated Formations")
|
| 78 |
],
|
| 79 |
title="Deepfield Proyecto Maradona E3 Football Formation Recommender",
|
| 80 |
description="Enter the opponent formation to get the recommended formation and a list of evaluated formations with their scores."
|