Spaces:
Running
Running
Try bokeh
Browse files- app.py +11 -1
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -6,6 +6,8 @@ import gradio as gr
|
|
| 6 |
from gradio.themes.utils.sizes import text_md
|
| 7 |
from gradio_modal import Modal
|
| 8 |
|
|
|
|
|
|
|
| 9 |
from content import (
|
| 10 |
HEADER_MARKDOWN,
|
| 11 |
LEADERBOARD_TAB_TITLE_MARKDOWN,
|
|
@@ -624,7 +626,15 @@ def gradio_app():
|
|
| 624 |
with gr.TabItem('Leaderboard'):
|
| 625 |
with gr.Column():
|
| 626 |
gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
|
| 627 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 628 |
with gr.Row():
|
| 629 |
leaderboard_category_of_tasks = gr.Dropdown(
|
| 630 |
choices=(
|
|
|
|
| 6 |
from gradio.themes.utils.sizes import text_md
|
| 7 |
from gradio_modal import Modal
|
| 8 |
|
| 9 |
+
from bokeh.plotting import figure
|
| 10 |
+
|
| 11 |
from content import (
|
| 12 |
HEADER_MARKDOWN,
|
| 13 |
LEADERBOARD_TAB_TITLE_MARKDOWN,
|
|
|
|
| 626 |
with gr.TabItem('Leaderboard'):
|
| 627 |
with gr.Column():
|
| 628 |
gr.Markdown(LEADERBOARD_TAB_TITLE_MARKDOWN)
|
| 629 |
+
|
| 630 |
+
with gr.Row():
|
| 631 |
+
x = list(range(11))
|
| 632 |
+
y0 = x
|
| 633 |
+
y1 = [10 - i for i in x]
|
| 634 |
+
fig = figure(width=250, height=250, title='Plot1')
|
| 635 |
+
fig.circle(x, y0, size=10, color="navy", alpha=0.5)
|
| 636 |
+
p1 = gr.Plot(value=fig, label='Plot 1')
|
| 637 |
+
|
| 638 |
with gr.Row():
|
| 639 |
leaderboard_category_of_tasks = gr.Dropdown(
|
| 640 |
choices=(
|
requirements.txt
CHANGED
|
@@ -11,3 +11,4 @@ scikit-learn==1.5.2
|
|
| 11 |
numba==0.60.0
|
| 12 |
gradio_modal==0.0.3
|
| 13 |
regex==2024.9.11
|
|
|
|
|
|
| 11 |
numba==0.60.0
|
| 12 |
gradio_modal==0.0.3
|
| 13 |
regex==2024.9.11
|
| 14 |
+
bokeh
|