Spaces:
Build error
Build error
taskswithcode
commited on
Commit
·
a2e698f
1
Parent(s):
9502fe9
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,8 @@ def inference(img,unique_only):
|
|
131 |
|
132 |
|
133 |
with gr.Blocks() as demo:
|
134 |
-
gr.Markdown("
|
|
|
135 |
gr.Markdown("Use Detic to detect objects in an image and then copy/paste into ChatGPT playground to describe the image.")
|
136 |
|
137 |
#gr.HTML("<p>You can duplicating this space and use your own session token: <a style='display:inline-block' href='https://huggingface.co/spaces/yizhangliu/chatGPT?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14' alt='Duplicate Space'></a></p>")
|
@@ -140,7 +141,7 @@ with gr.Blocks() as demo:
|
|
140 |
with gr.Column():
|
141 |
inp = gr.Image(label="Input Image", type="filepath")
|
142 |
chk = gr.Checkbox(label="Unique Object only?")
|
143 |
-
btn_detic = gr.Button("Run Detic
|
144 |
with gr.Column():
|
145 |
outviz = gr.Image(label="Visualization", type="pil")
|
146 |
output_desc = gr.Textbox(label="Description for using in ChatGPT", lines=5)
|
|
|
131 |
|
132 |
|
133 |
with gr.Blocks() as demo:
|
134 |
+
gr.Markdown("<div style=\"font-size:16; color: #2f2f2f; text-align: center\"># Detic for ChatGPT</div> <i>)
|
135 |
+
gr.Markdown("<div style=\"font-size:12; color: #6f6f6f; text-align: center\"><i>A duplicated tweak of <a href=\"https://huggingface.co/spaces/taesiri/DeticChatGPT\">taesiri's Dectic/ChatGPT demo</a></i>")
|
136 |
gr.Markdown("Use Detic to detect objects in an image and then copy/paste into ChatGPT playground to describe the image.")
|
137 |
|
138 |
#gr.HTML("<p>You can duplicating this space and use your own session token: <a style='display:inline-block' href='https://huggingface.co/spaces/yizhangliu/chatGPT?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14' alt='Duplicate Space'></a></p>")
|
|
|
141 |
with gr.Column():
|
142 |
inp = gr.Image(label="Input Image", type="filepath")
|
143 |
chk = gr.Checkbox(label="Unique Object only?")
|
144 |
+
btn_detic = gr.Button("Run Detic for ChatGPT")
|
145 |
with gr.Column():
|
146 |
outviz = gr.Image(label="Visualization", type="pil")
|
147 |
output_desc = gr.Textbox(label="Description for using in ChatGPT", lines=5)
|