Spaces:
Runtime error
Runtime error
castorfou
commited on
Commit
·
220d4a1
1
Parent(s):
48284e5
2022-10-07_13:55
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
# AUTOGENERATED! DO NOT EDIT! File to edit:
|
2 |
|
3 |
# %% auto 0
|
4 |
-
__all__ = [
|
5 |
|
6 |
-
# %%
|
7 |
import gradio as gr
|
8 |
import pandas as pd
|
9 |
import tempfile
|
@@ -14,7 +14,7 @@ from rbc import add_classements
|
|
14 |
def analyse_fichier(file):
|
15 |
fichier = file[0]
|
16 |
fichier_save = Path(fichier.name).stem
|
17 |
-
|
18 |
df_adherents = pd.read_excel(fichier)
|
19 |
df_classements = add_classements(df_adherents)
|
20 |
|
|
|
1 |
+
# AUTOGENERATED! DO NOT EDIT! File to edit: main.ipynb.
|
2 |
|
3 |
# %% auto 0
|
4 |
+
__all__ = []
|
5 |
|
6 |
+
# %% main.ipynb 2
|
7 |
import gradio as gr
|
8 |
import pandas as pd
|
9 |
import tempfile
|
|
|
14 |
def analyse_fichier(file):
|
15 |
fichier = file[0]
|
16 |
fichier_save = Path(fichier.name).stem
|
17 |
+
https://huggingface.co/spaces/Guillaume63/rbc
|
18 |
df_adherents = pd.read_excel(fichier)
|
19 |
df_classements = add_classements(df_adherents)
|
20 |
|
rbc.py
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
-
# AUTOGENERATED! DO NOT EDIT! File to edit:
|
2 |
|
3 |
# %% auto 0
|
4 |
__all__ = ['PAGE', 'html_tables', 'df_adherents', 'get_classement', 'add_classements']
|
5 |
|
6 |
-
# %%
|
7 |
PAGE = 'https://badmania.fr/club-joueurs-2254-riom-badminton-club.html'
|
8 |
|
9 |
-
# %%
|
10 |
import pandas as pd
|
11 |
html_tables = pd.read_html(PAGE)
|
12 |
df_adherents = html_tables[0]
|
13 |
|
14 |
|
15 |
-
# %%
|
16 |
def get_classement(
|
17 |
license_number,# le numero de license
|
18 |
):
|
@@ -22,7 +22,7 @@ def get_classement(
|
|
22 |
else:
|
23 |
return ''
|
24 |
|
25 |
-
# %%
|
26 |
def add_classements(dataframe, #le dataframe des adherents
|
27 |
):
|
28 |
dataframe = dataframe.copy()
|
|
|
1 |
+
# AUTOGENERATED! DO NOT EDIT! File to edit: update_classement.ipynb.
|
2 |
|
3 |
# %% auto 0
|
4 |
__all__ = ['PAGE', 'html_tables', 'df_adherents', 'get_classement', 'add_classements']
|
5 |
|
6 |
+
# %% update_classement.ipynb 2
|
7 |
PAGE = 'https://badmania.fr/club-joueurs-2254-riom-badminton-club.html'
|
8 |
|
9 |
+
# %% update_classement.ipynb 3
|
10 |
import pandas as pd
|
11 |
html_tables = pd.read_html(PAGE)
|
12 |
df_adherents = html_tables[0]
|
13 |
|
14 |
|
15 |
+
# %% update_classement.ipynb 7
|
16 |
def get_classement(
|
17 |
license_number,# le numero de license
|
18 |
):
|
|
|
22 |
else:
|
23 |
return ''
|
24 |
|
25 |
+
# %% update_classement.ipynb 19
|
26 |
def add_classements(dataframe, #le dataframe des adherents
|
27 |
):
|
28 |
dataframe = dataframe.copy()
|