Li commited on
Commit
ed32995
1 Parent(s): 585d195

update app

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -164,24 +164,16 @@ def generate(
164
  with gr.Blocks() as demo:
165
  gr.Markdown(
166
  """
167
- # 🦩 OpenFlamingo Demo
168
 
169
- Blog posts: #1 [Announcing OpenFlamingo: An open-source framework for training vision-language models with in-context learning](https://laion.ai/blog/open-flamingo/) // #2 [OpenFlamingo v2: New Models and Enhanced Training Setup](https://laion.ai/blog/open-flamingo-v2/)
170
-
171
- GitHub: [open_flamingo](https://github.com/mlfoundations/open_flamingo)
172
-
173
- In this demo we showcase the in-context learning capabilities of the OpenFlamingo-9B model, a large multimodal model trained on top of mpt-7b. Note that we add two additional demonstrations to the ones presented to improve the demo experience.
174
- The model is trained on an interleaved mixture of text and images and is able to generate text conditioned on sequences of images/text. To safeguard against harmful generations, we detect toxic text in the model output and reject it. However, we understand that this is not a perfect solution and we encourage you to use this demo responsibly. If you find that the model is generating harmful text, please report it using this [form](https://forms.gle/StbcPvyyW2p3Pc7z6).
175
  """
176
  )
177
 
178
  with gr.Accordion("See terms and conditions"):
179
- gr.Markdown("""**Please read the following information carefully before proceeding.**
180
-
181
- [OpenFlamingo-9B](https://huggingface.co/openflamingo/OpenFlamingo-9B-vitl-mpt7b) is a **research prototype** that aims to enable users to interact with AI through both language and images. AI agents equipped with both language and visual understanding can be useful on a larger variety of tasks compared to models that communicate solely via language. By releasing an open-source research prototype, we hope to help the research community better understand the risks and limitations of modern visual-language AI models and accelerate the development of safer and more reliable methods.
182
- **Limitations.** OpenFlamingo-9B is built on top of the [MPT-7B](https://huggingface.co/mosaicml/mpt-7b) large language model developed by Together.xyz. Large language models are trained on mostly unfiltered internet data, and have been shown to be able to produce toxic, unethical, inaccurate, and harmful content. On top of this, OpenFlamingo’s ability to support visual inputs creates additional risks, since it can be used in a wider variety of applications; image+text models may carry additional risks specific to multimodality. Please use discretion when assessing the accuracy or appropriateness of the model’s outputs, and be mindful before sharing its results.
183
- **Privacy and data collection.** This demo does NOT store any personal information on its users, and it does NOT store user queries.""")
184
-
185
 
186
  with gr.Tab("📷 Image Captioning"):
187
  with gr.Row():
 
164
  with gr.Blocks() as demo:
165
  gr.Markdown(
166
  """
167
+ 🍜 Object Centric Pretraining Demo
168
 
169
+ In this demo we showcase the in-context learning and grounding capabilities of the Object-Centric Pretrained model, a large multimodal model. Note that we add two additional demonstrations to the ones presented to improve the demo experience.
170
+ The model is trained on an interleaved mixture of text, images and bounding box and is able to generate text conditioned on sequences of images/text.
 
 
 
 
171
  """
172
  )
173
 
174
  with gr.Accordion("See terms and conditions"):
175
+ gr.Markdown(
176
+ """**Please read the following information carefully before proceeding.**This demo does NOT store any personal information on its users, and it does NOT store user queries.""")
 
 
 
 
177
 
178
  with gr.Tab("📷 Image Captioning"):
179
  with gr.Row():