andy-wyx commited on
Commit
503ec98
·
1 Parent(s): 60841b3

update user guide font size

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. closest_sample.py +1 -1
app.py CHANGED
@@ -405,7 +405,7 @@ with gr.Blocks(theme='sudeepshouche/minimalist') as demo:
405
  # with gr.Accordion('Closest Leaves Images'):
406
  # gr.Markdown("5 closest leaves")
407
  with gr.Accordion("Class Distribution of Closest Samples "):
408
- gr.Markdown("Visualize class distribution of top-k closest samples in our dataset")
409
  with gr.Column():
410
  with gr.Row():
411
  diagram= gr.Image(label = 'Bar Chart')
 
405
  # with gr.Accordion('Closest Leaves Images'):
406
  # gr.Markdown("5 closest leaves")
407
  with gr.Accordion("Class Distribution of Closest Samples "):
408
+ gr.Markdown("Visualize plant family distribution of top-k closest samples in our dataset")
409
  with gr.Column():
410
  with gr.Row():
411
  diagram= gr.Image(label = 'Bar Chart')
closest_sample.py CHANGED
@@ -131,7 +131,7 @@ def get_diagram(embedding,top_k):
131
  colors = plt.cm.viridis(np.linspace(0, 1, len(sorted_classes)))
132
  fig, ax = plt.subplots()
133
  ax.bar(sorted_classes, sorted_frequencies,color=colors)
134
- ax.set_xlabel('Class Label')
135
  ax.set_ylabel('Frequency')
136
  ax.set_title('Distribution of Plant Family of '+str(top_k) +' Closest Samples')
137
  ax.set_xticklabels(class_counts.keys(), rotation=45, ha='right')
 
131
  colors = plt.cm.viridis(np.linspace(0, 1, len(sorted_classes)))
132
  fig, ax = plt.subplots()
133
  ax.bar(sorted_classes, sorted_frequencies,color=colors)
134
+ ax.set_xlabel('Plant Family')
135
  ax.set_ylabel('Frequency')
136
  ax.set_title('Distribution of Plant Family of '+str(top_k) +' Closest Samples')
137
  ax.set_xticklabels(class_counts.keys(), rotation=45, ha='right')