Spaces:
Running
Running
Commit
·
4318ef2
1
Parent(s):
cc24818
Update app
Browse files- demo.py +0 -1
- gradio_function.py +1 -1
demo.py
CHANGED
@@ -43,7 +43,6 @@ with gr.Blocks(fill_height=True) as demo:
|
|
43 |
gr.Markdown('## Bugs and other notes')
|
44 |
with gr.Accordion('Click to open', open=False):
|
45 |
gr.Markdown('''
|
46 |
-
- The bottommost level of the pitch heat maps are not transparent even though they should be. Works on Google Colab but not when I put everything in a `.py` file it doesn't work.
|
47 |
- CSW% has not been verified
|
48 |
'''
|
49 |
)
|
|
|
43 |
gr.Markdown('## Bugs and other notes')
|
44 |
with gr.Accordion('Click to open', open=False):
|
45 |
gr.Markdown('''
|
|
|
46 |
- CSW% has not been verified
|
47 |
'''
|
48 |
)
|
gradio_function.py
CHANGED
@@ -108,7 +108,7 @@ colorscale = pc.sequential.OrRd
|
|
108 |
colorscale = [
|
109 |
[0, 'rgba(0, 0, 0, 0)'],
|
110 |
] + [
|
111 |
-
[i /
|
112 |
]
|
113 |
|
114 |
def plot_pitch_map(player, pitch_type=None, pitch_name=None):
|
|
|
108 |
colorscale = [
|
109 |
[0, 'rgba(0, 0, 0, 0)'],
|
110 |
] + [
|
111 |
+
[i / len(colorscale), color] for i, color in enumerate(colorscale, start=1)
|
112 |
]
|
113 |
|
114 |
def plot_pitch_map(player, pitch_type=None, pitch_name=None):
|