Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,11 @@ Links to HuggingFace Models:
|
|
| 100 |
models = ["facebook/detr-resnet-50","facebook/detr-resnet-101",'hustvl/yolos-small']
|
| 101 |
urls = ["https://c8.alamy.com/comp/J2AB4K/the-new-york-stock-exchange-on-the-wall-street-in-new-york-J2AB4K.jpg"]
|
| 102 |
|
|
|
|
| 103 |
|
|
|
|
|
|
|
|
|
|
| 104 |
css = '''
|
| 105 |
h1#title {
|
| 106 |
text-align: center;
|
|
@@ -111,6 +115,7 @@ demo = gr.Blocks(css=css)
|
|
| 111 |
with demo:
|
| 112 |
gr.Markdown(title)
|
| 113 |
gr.Markdown(description)
|
|
|
|
| 114 |
options = gr.Dropdown(choices=models,label='Select Object Detection Model',show_label=True)
|
| 115 |
slider_input = gr.Slider(minimum=0.2,maximum=1,value=0.7,label='Prediction Threshold')
|
| 116 |
|
|
|
|
| 100 |
models = ["facebook/detr-resnet-50","facebook/detr-resnet-101",'hustvl/yolos-small']
|
| 101 |
urls = ["https://c8.alamy.com/comp/J2AB4K/the-new-york-stock-exchange-on-the-wall-street-in-new-york-J2AB4K.jpg"]
|
| 102 |
|
| 103 |
+
twitter_link = """
|
| 104 |
|
| 105 |
+
[](https://twitter.com/nickmuchi)
|
| 106 |
+
|
| 107 |
+
"""
|
| 108 |
css = '''
|
| 109 |
h1#title {
|
| 110 |
text-align: center;
|
|
|
|
| 115 |
with demo:
|
| 116 |
gr.Markdown(title)
|
| 117 |
gr.Markdown(description)
|
| 118 |
+
gr.Markdown(twitter_link)
|
| 119 |
options = gr.Dropdown(choices=models,label='Select Object Detection Model',show_label=True)
|
| 120 |
slider_input = gr.Slider(minimum=0.2,maximum=1,value=0.7,label='Prediction Threshold')
|
| 121 |
|