Commit
·
c90aafb
1
Parent(s):
6f13a14
Update app.py
Browse files
app.py
CHANGED
@@ -177,18 +177,22 @@ def usatt_rating_analyzer(file_obj):
|
|
177 |
|
178 |
|
179 |
with gr.Blocks() as demo:
|
180 |
-
|
|
|
181 |
Analyze USA table tennis tournament and league results.
|
182 |
|
183 |
## Downloading match results
|
184 |
-
1. Make sure you are [logged in](https://usatt.simplycompete.com/login/auth).
|
185 |
2. Find the *active* player you wish to analyze (e.g., [Kanak Jha](https://usatt.simplycompete.com/userAccount/up/3431)).
|
186 |
3. Under 'Tournaments' or 'Leagues', click *Download Tournament/League Match History*.
|
|
|
|
|
|
|
187 |
""")
|
188 |
with gr.Row():
|
189 |
with gr.Column():
|
190 |
input_file = gr.File(label='USATT Results File', file_types=['file'])
|
191 |
-
btn = gr.Button(
|
192 |
|
193 |
with gr.Group():
|
194 |
with gr.Row():
|
|
|
177 |
|
178 |
|
179 |
with gr.Blocks() as demo:
|
180 |
+
analyze_btn_title = "Analyze"
|
181 |
+
gr.Markdown(f"""# USATT rating analyzer
|
182 |
Analyze USA table tennis tournament and league results.
|
183 |
|
184 |
## Downloading match results
|
185 |
+
1. Make sure you are [logged in](https://usatt.simplycompete.com/login/auth) to your USATT account.
|
186 |
2. Find the *active* player you wish to analyze (e.g., [Kanak Jha](https://usatt.simplycompete.com/userAccount/up/3431)).
|
187 |
3. Under 'Tournaments' or 'Leagues', click *Download Tournament/League Match History*.
|
188 |
+
|
189 |
+
## Usage
|
190 |
+
1. Simply add your tournament/league match history CSV file and click the "{analyze_btn_title}" button.
|
191 |
""")
|
192 |
with gr.Row():
|
193 |
with gr.Column():
|
194 |
input_file = gr.File(label='USATT Results File', file_types=['file'])
|
195 |
+
btn = gr.Button(analyze_btn_title)
|
196 |
|
197 |
with gr.Group():
|
198 |
with gr.Row():
|