Spaces:
Runtime error
Runtime error
Dongxu Li
commited on
Commit
·
2c3ec9e
1
Parent(s):
f679197
disable image uploading.
Browse files
app.py
CHANGED
@@ -132,6 +132,9 @@ article = """<strong>Paper</strong>: <a href='https://arxiv.org/abs/2301.12597'
|
|
132 |
<br> <strong>🤗 `transformers` integration</strong>: You can now use `transformers` to use our BLIP-2 models! Check out the <a href='https://huggingface.co/docs/transformers/main/en/model_doc/blip-2' target='_blank'> official docs </a>
|
133 |
<p> <strong>Project Page</strong>: <a href='https://github.com/salesforce/LAVIS/tree/main/projects/blip2' target='_blank'> BLIP2 on LAVIS</a>
|
134 |
<br> <strong>Description</strong>: Captioning results from <strong>BLIP2_OPT_6.7B</strong>. Chat results from <strong>BLIP2_FlanT5xxl</strong>.
|
|
|
|
|
|
|
135 |
"""
|
136 |
|
137 |
endpoint = Endpoint()
|
@@ -158,7 +161,7 @@ with gr.Blocks(
|
|
158 |
|
159 |
with gr.Row():
|
160 |
with gr.Column(scale=1):
|
161 |
-
image_input = gr.Image(type="pil")
|
162 |
|
163 |
# with gr.Row():
|
164 |
sampling = gr.Radio(
|
|
|
132 |
<br> <strong>🤗 `transformers` integration</strong>: You can now use `transformers` to use our BLIP-2 models! Check out the <a href='https://huggingface.co/docs/transformers/main/en/model_doc/blip-2' target='_blank'> official docs </a>
|
133 |
<p> <strong>Project Page</strong>: <a href='https://github.com/salesforce/LAVIS/tree/main/projects/blip2' target='_blank'> BLIP2 on LAVIS</a>
|
134 |
<br> <strong>Description</strong>: Captioning results from <strong>BLIP2_OPT_6.7B</strong>. Chat results from <strong>BLIP2_FlanT5xxl</strong>.
|
135 |
+
|
136 |
+
<h2><strong>Due to ethical concerns, we have disabled image uploading from March 21. 2023. </strong>
|
137 |
+
<h2><strong>Please try examples provided below.</strong>
|
138 |
"""
|
139 |
|
140 |
endpoint = Endpoint()
|
|
|
161 |
|
162 |
with gr.Row():
|
163 |
with gr.Column(scale=1):
|
164 |
+
image_input = gr.Image(type="pil", interactive=False)
|
165 |
|
166 |
# with gr.Row():
|
167 |
sampling = gr.Radio(
|