Spaces:
Runtime error
Runtime error
update huggingface grant
Browse files- app.py +9 -2
- utils/__pycache__/util.cpython-38.pyc +0 -0
app.py
CHANGED
@@ -99,9 +99,16 @@ image_input = gr.inputs.Image(type='filepath', label="Input Image")
|
|
99 |
# semantic_segment_checkbox = gr.inputs.Checkbox(label="Semantic Segment", default=False)
|
100 |
image_generation_checkbox = gr.inputs.Checkbox(label="Image Generation", default=False)
|
101 |
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
logo_base64 = add_logo()
|
103 |
# Create the title with the logo
|
104 |
-
title_with_logo =
|
|
|
105 |
|
106 |
examples = [
|
107 |
["examples/test_4.jpg"],
|
@@ -119,7 +126,7 @@ interface = gr.Interface(
|
|
119 |
outputs=gr.outputs.HTML(),
|
120 |
title=title_with_logo,
|
121 |
examples=examples,
|
122 |
-
description="""
|
123 |
This code support image to text transformation. Then the generated text can do retrieval, question answering et al to conduct zero-shot.
|
124 |
\n Github: https://github.com/showlab/Image2Paragraph
|
125 |
\n Twitter: https://twitter.com/awinyimgprocess/status/1646225454599372800?s=46&t=HvOe9T2n35iFuCHP5aIHpQ
|
|
|
99 |
# semantic_segment_checkbox = gr.inputs.Checkbox(label="Semantic Segment", default=False)
|
100 |
image_generation_checkbox = gr.inputs.Checkbox(label="Image Generation", default=False)
|
101 |
|
102 |
+
|
103 |
+
extra_title = r'![vistors](https://visitor-badge.glitch.me/badge?page_id=fingerrec.Image2Paragraph)' + '\n' + \
|
104 |
+
r'[![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-md-dark.svg)](https://huggingface.co/spaces/Awiny/Image2Paragraph?duplicate=true)' + '\n\n'
|
105 |
+
|
106 |
+
|
107 |
+
|
108 |
logo_base64 = add_logo()
|
109 |
# Create the title with the logo
|
110 |
+
title_with_logo = \
|
111 |
+
f'<img src="data:image/jpeg;base64,{logo_base64}" width="400" style="vertical-align: middle;"> Understanding Image with Text'
|
112 |
|
113 |
examples = [
|
114 |
["examples/test_4.jpg"],
|
|
|
126 |
outputs=gr.outputs.HTML(),
|
127 |
title=title_with_logo,
|
128 |
examples=examples,
|
129 |
+
description=extra_title +"""
|
130 |
This code support image to text transformation. Then the generated text can do retrieval, question answering et al to conduct zero-shot.
|
131 |
\n Github: https://github.com/showlab/Image2Paragraph
|
132 |
\n Twitter: https://twitter.com/awinyimgprocess/status/1646225454599372800?s=46&t=HvOe9T2n35iFuCHP5aIHpQ
|
utils/__pycache__/util.cpython-38.pyc
CHANGED
Binary files a/utils/__pycache__/util.cpython-38.pyc and b/utils/__pycache__/util.cpython-38.pyc differ
|
|