Spaces:
Configuration error
Configuration error
Update description
Browse files
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 = "
|
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.
|
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=(
|
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],
|