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

better description

Browse files
Files changed (1) hide show
  1. app.py +29 -12
app.py CHANGED
@@ -51,17 +51,31 @@ def query_image(input_img, query, binarize, eval_threshold):
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">one column</div>
64
- <div class="column">second column</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  </div>
66
  """
67
  demo = gr.Interface(
@@ -79,12 +93,15 @@ demo = gr.Interface(
79
  cache_examples=False,
80
  allow_flagging = "never",
81
  css = """
 
 
 
82
  .row {
83
  display: flex;
84
  }
85
 
86
  .column {
87
- flex: 50%;
88
  }
89
  """
90
  )
 
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
  """
81
  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
  }
102
 
103
  .column {
104
+ flex: 30%;
105
  }
106
  """
107
  )