Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -146,7 +146,6 @@ def make_profession_table(num_clusters, prof_names, mod_name, max_cols=8):
|
|
146 |
|
147 |
|
148 |
def show_examplars(num_clusters, prof_name, mod_name, cl_id):
|
149 |
-
# TODO: show the actual images
|
150 |
examplars_dict = clusters_dicts[num_clusters][df_models[mod_name]][prof_name][
|
151 |
"cluster_examplars"
|
152 |
][str(cl_id)]
|
@@ -258,8 +257,7 @@ with gr.Blocks(title=TITLE) as demo:
|
|
258 |
)
|
259 |
with gr.Row():
|
260 |
examplars_plot = (
|
261 |
-
gr.Gallery()
|
262 |
-
) # TODO: turn this into a plot with the actual images
|
263 |
demo.load(
|
264 |
show_examplars,
|
265 |
[
|
|
|
146 |
|
147 |
|
148 |
def show_examplars(num_clusters, prof_name, mod_name, cl_id):
|
|
|
149 |
examplars_dict = clusters_dicts[num_clusters][df_models[mod_name]][prof_name][
|
150 |
"cluster_examplars"
|
151 |
][str(cl_id)]
|
|
|
257 |
)
|
258 |
with gr.Row():
|
259 |
examplars_plot = (
|
260 |
+
gr.Gallery().style(grid=3, height="auto")
|
|
|
261 |
demo.load(
|
262 |
show_examplars,
|
263 |
[
|