fmajer commited on
Commit
6b47b8c
·
1 Parent(s): c682534

better description

Browse files
Files changed (1) hide show
  1. app.py +22 -27
app.py CHANGED
@@ -51,30 +51,28 @@ def query_image(input_img, query, binarize, eval_threshold):
51
 
52
  # Gradio interface
53
  description = """
54
- <div class="body">
55
- Gradio demo for an object detection architecture, introduced in my <a href="https://www.google.com/">bachelor thesis</a> (link will be added).
56
- \n\n
57
- You can use this architecture to detect objects using textual queries. To use it, simply upload an image and enter any query you want.
58
- It can be a single word or in the form of a sentence. The model is trained to recognize only 80 categories from the COCO Detection 2017 dataset.
59
- Refer to <a href="https://tech.amikelive.com/node-718/what-object-categories-labels-are-in-coco-dataset/">this</a> website
60
- or the original <a href="https://arxiv.org/pdf/1405.0312.pdf">COCO</a> paper to see the full list of categories.
61
- \n\n
62
- Best results are obtained using one of these sentences, which were used during training:
63
- <div class="row">
64
- <div class="column">
65
- <ul>
66
- <li>Find a {class}.</li>
67
- <li>Tea</li>
68
- <li>Milk</li>
69
- </ul>
70
- </div>
71
- <div class="column">
72
- <ul>
73
- <li>Coffee</li>
74
- <li>Tea</li>
75
- <li>Milk</li>
76
- </ul>
77
- </div>
78
  </div>
79
  </div>
80
  """
@@ -93,9 +91,6 @@ demo = gr.Interface(
93
  cache_examples=False,
94
  allow_flagging = "never",
95
  css = """
96
- .body {
97
- font-size: 14px;
98
- }
99
  .row {
100
  display: flex;
101
  }
 
51
 
52
  # Gradio interface
53
  description = """
54
+ Gradio demo for an object detection architecture, introduced in my <a href="https://www.google.com/">bachelor thesis</a> (link will be added).
55
+ \n\n
56
+ You can use this architecture to detect objects using textual queries. To use it, simply upload an image and enter any query you want.
57
+ It can be a single word or in the form of a sentence. The model is trained to recognize only 80 categories from the COCO Detection 2017 dataset.
58
+ Refer to <a href="https://tech.amikelive.com/node-718/what-object-categories-labels-are-in-coco-dataset/">this</a> website
59
+ or the original <a href="https://arxiv.org/pdf/1405.0312.pdf">COCO</a> paper to see the full list of categories.
60
+ \n\n
61
+ Best results are obtained using one of these sentences, which were used during training:
62
+ <div class="row">
63
+ <div class="column">
64
+ <ul>
65
+ <li>Find a {class}.</li>
66
+ <li>Tea</li>
67
+ <li>Milk</li>
68
+ </ul>
69
+ </div>
70
+ <div class="column">
71
+ <ul>
72
+ <li>Coffee</li>
73
+ <li>Tea</li>
74
+ <li>Milk</li>
75
+ </ul>
 
 
76
  </div>
77
  </div>
78
  """
 
91
  cache_examples=False,
92
  allow_flagging = "never",
93
  css = """
 
 
 
94
  .row {
95
  display: flex;
96
  }