clement-w commited on
Commit
59c074b
·
1 Parent(s): aa2ee68

Update description

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -123,7 +123,7 @@ h1#title {
123
  demo = gr.Blocks(css=css)
124
 
125
  title = """<h1 id="title">Custom Cyclists detector</h1>"""
126
- description = "todo"
127
 
128
 
129
  def set_example_image(example: list) -> dict:
@@ -140,7 +140,7 @@ with demo:
140
  gr.Markdown(title)
141
  gr.Markdown(description)
142
  slider_input = gr.Slider(minimum=0.0, maximum=1,
143
- value=0.2, label='Prediction Threshold')
144
 
145
  with gr.Tabs():
146
  with gr.TabItem('Image URL'):
@@ -158,7 +158,7 @@ with demo:
158
  with gr.TabItem('Image Upload'):
159
  with gr.Row():
160
  img_input = gr.Image(type='pil')
161
- img_output_from_upload = gr.Image(shape=(650, 650))
162
 
163
  with gr.Row():
164
  example_images = gr.Dataset(components=[img_input],
 
123
  demo = gr.Blocks(css=css)
124
 
125
  title = """<h1 id="title">Custom Cyclists detector</h1>"""
126
+ description = """Model created for the ECS 171 final project at UC Davis. For more information, check out the github repo <a href="https://github.com/Clement-W/cyclists-counter">cyclists-counter</a>."""
127
 
128
 
129
  def set_example_image(example: list) -> dict:
 
140
  gr.Markdown(title)
141
  gr.Markdown(description)
142
  slider_input = gr.Slider(minimum=0.0, maximum=1,
143
+ value=0.1, label='Prediction Threshold')
144
 
145
  with gr.Tabs():
146
  with gr.TabItem('Image URL'):
 
158
  with gr.TabItem('Image Upload'):
159
  with gr.Row():
160
  img_input = gr.Image(type='pil')
161
+ img_output_from_upload = gr.Image(shape=(640, 640))
162
 
163
  with gr.Row():
164
  example_images = gr.Dataset(components=[img_input],