anhng8 commited on
Commit
842a66b
1 Parent(s): 9f392a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -388,14 +388,14 @@ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css, title="PEEB") as demo:
388
 
389
  with gr.Column():
390
  title_text = gr.Markdown("# Demo | A classifier with Part-based Explainable and Editable Bottleneck (PEEB)")
391
- gr.Markdown("Here is a PEEB bird classifier pre-trained on Bird-11K and finetuned on CUB-200 (see our [NAACL 2024 paper](https://arxiv.org/abs/2403.05297) and [code](https://github.com/anguyen8/peeb/tree/inspect_ddp)).\n This **interactive** demo shows how to run PEEB on an existing image and **edit** a class' textual description to update the classifier to detect one new bird species (without any re-training).")
392
  gr.Markdown(
393
  """
394
- Steps:
395
  1. **Select an image**. Then, PEEB will show its grounded explanations and the top-1 predicted label with associated `softmax` confidence score.
396
  2. **Hover mouse over text descriptors** to see the corresponding region used to match to each text descriptor.
397
  3. **Edit the text under [Extra class]()** which correspond to one extra, new class (i.e. 200+1 = `201`). Further editing will overwrite this class' descriptors.
398
- 4. **Click on Predict** to see the grounded explanations and the top-1 label for the newly modified CUB-201 classifier.
399
  """
400
  )
401
 
 
388
 
389
  with gr.Column():
390
  title_text = gr.Markdown("# Demo | A classifier with Part-based Explainable and Editable Bottleneck (PEEB)")
391
+ gr.Markdown("PEEB is an image classifier, here for birds, pre-trained on Bird-11K and finetuned on CUB-200 (see our [NAACL 2024 paper](https://arxiv.org/abs/2403.05297) and [code](https://github.com/anguyen8/peeb/tree/inspect_ddp)).\n This **interactive** demo shows how to run PEEB on an existing image and how to **edit** a class' textual description to directly change the classifier to detect one new bird species (without any re-training).")
392
  gr.Markdown(
393
  """
394
+ ### Steps:
395
  1. **Select an image**. Then, PEEB will show its grounded explanations and the top-1 predicted label with associated `softmax` confidence score.
396
  2. **Hover mouse over text descriptors** to see the corresponding region used to match to each text descriptor.
397
  3. **Edit the text under [Extra class]()** which correspond to one extra, new class (i.e. 200+1 = `201`). Further editing will overwrite this class' descriptors.
398
+ 4. **Click on [Predict]()** to see the grounded explanations and the top-1 label for the newly modified CUB-201 classifier.
399
  """
400
  )
401