Spaces:
Running
Running
zeel sheladiya
commited on
Commit
·
ad90a70
1
Parent(s):
381b478
Update app.py
Browse filesmade initial UI for the model deployment
app.py
CHANGED
@@ -1,7 +1,57 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(name):
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
|
4 |
+
def predict(*args):
|
5 |
+
pass
|
6 |
+
|
7 |
+
# markup table for markdown
|
8 |
+
# # Members:
|
9 |
+
# | Students Name | Student ID |
|
10 |
+
# | :--- | :----: |
|
11 |
+
# | Zeel Karshanbhai Sheladiya | 500209119 |
|
12 |
+
# | Ravikumar Chandrakantbhai Patel | 500196861 |
|
13 |
+
# | Dharma Teja Reddy Bandreddi | 500209454 |
|
14 |
+
# | Sai Charan Reddy Meda | 500201602 |
|
15 |
+
# | Aditya Babu | 500209122 |
|
16 |
+
# | Sudip Bhattarai | 500198055 |
|
17 |
+
# | NOMAN FAZAL MUKADAM | 500209115 |
|
18 |
+
# | Leela Prasad Kavuri | 500209550 |
|
19 |
+
# | Vamsi Dasari | 500200775 |
|
20 |
+
|
21 |
+
with gr.Blocks() as demo:
|
22 |
+
gr.Markdown("""
|
23 |
+
# Subject: Data Science Project Management and Requirement Gathering 02 (Group 4)
|
24 |
+
[](https://github.com/ravi7522/Football-Prediction)
|
25 |
+
""")
|
26 |
+
with gr.Row():
|
27 |
+
gr.Label("Football Prediction", container=False)
|
28 |
+
|
29 |
+
with gr.Row():
|
30 |
+
with gr.Column():
|
31 |
+
|
32 |
+
home_team_id = gr.Dropdown(
|
33 |
+
label="Home Team",
|
34 |
+
choices=["zeel", "Ravi", "Sudip", "sai"],
|
35 |
+
)
|
36 |
+
|
37 |
+
with gr.Column():
|
38 |
+
|
39 |
+
Away_team_id = gr.Dropdown(
|
40 |
+
label="Away Team",
|
41 |
+
choices=["zeel", "Ravi", "Sudip", "sai"],
|
42 |
+
)
|
43 |
+
|
44 |
+
with gr.Row():
|
45 |
+
predict_btn = gr.Button(value="Predict")
|
46 |
+
predict_btn.click(
|
47 |
+
predict,
|
48 |
+
inputs=[
|
49 |
+
# needed parameters
|
50 |
+
],
|
51 |
+
outputs=[],
|
52 |
+
)
|
53 |
+
|
54 |
+
with gr.Row():
|
55 |
+
plot = gr.Plot()
|
56 |
+
|
57 |
+
demo.launch()
|