Spaces:
Sleeping
Sleeping
Commit
·
8569336
1
Parent(s):
0882315
Function name correction
Browse files
app.py
CHANGED
@@ -170,7 +170,7 @@ def cplot(df, ci=0.95):
|
|
170 |
|
171 |
return _plot
|
172 |
|
173 |
-
def
|
174 |
path = Path(f'{prefix}{name.upper()}')
|
175 |
return (path
|
176 |
.with_suffix('.md')
|
@@ -186,7 +186,7 @@ with gr.Blocks() as demo:
|
|
186 |
gr.Markdown('# Alpaca Bradley–Terry')
|
187 |
with gr.Row():
|
188 |
with gr.Column():
|
189 |
-
gr.Markdown(
|
190 |
|
191 |
with gr.Column():
|
192 |
plotter = RankPlotter(df)
|
@@ -229,6 +229,6 @@ with gr.Blocks() as demo:
|
|
229 |
button.click(cplot(df), inputs=inputs, outputs=[display])
|
230 |
|
231 |
with gr.Accordion('Disclaimer', open=False):
|
232 |
-
gr.Markdown(
|
233 |
|
234 |
demo.launch()
|
|
|
170 |
|
171 |
return _plot
|
172 |
|
173 |
+
def md_reader(name, prefix='_'):
|
174 |
path = Path(f'{prefix}{name.upper()}')
|
175 |
return (path
|
176 |
.with_suffix('.md')
|
|
|
186 |
gr.Markdown('# Alpaca Bradley–Terry')
|
187 |
with gr.Row():
|
188 |
with gr.Column():
|
189 |
+
gr.Markdown(md_reader('readme'))
|
190 |
|
191 |
with gr.Column():
|
192 |
plotter = RankPlotter(df)
|
|
|
229 |
button.click(cplot(df), inputs=inputs, outputs=[display])
|
230 |
|
231 |
with gr.Accordion('Disclaimer', open=False):
|
232 |
+
gr.Markdown(md_reader('disclaimer'))
|
233 |
|
234 |
demo.launch()
|