Update app.py
Browse files
app.py
CHANGED
@@ -234,25 +234,16 @@ def main():
|
|
234 |
return annotated_image, colored_text, str(filtered_entities)
|
235 |
|
236 |
term_of_use = """
|
237 |
-
### Terms of use
|
238 |
-
By using this model, users are required to agree to the following terms:
|
239 |
-
The model is intended for academic and research purposes.
|
240 |
-
The utilization of the model to create unsuitable material is strictly forbidden and not endorsed by this work.
|
241 |
-
The accountability for any improper or unacceptable application of the model rests exclusively with the individuals who generated such content.
|
242 |
-
|
243 |
-
### License
|
244 |
-
This project is licensed under the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct).
|
245 |
"""
|
246 |
|
247 |
-
with gr.Blocks(title="Kosmos-2", theme=gr.themes.Base()).queue() as demo:
|
248 |
gr.Markdown(("""
|
249 |
-
# Kosmos-2:
|
250 |
-
[[Paper]](https://arxiv.org/abs/2306.14824) [[Code]](https://github.com/microsoft/unilm/blob/master/kosmos-2)
|
251 |
"""))
|
252 |
with gr.Row():
|
253 |
with gr.Column():
|
254 |
image_input = gr.Image(type="pil", label="Test Image")
|
255 |
-
text_input = gr.Radio(["Brief", "Detailed"], label="Description Type", value="
|
256 |
|
257 |
run_button = gr.Button(label="Run", visible=True)
|
258 |
|
|
|
234 |
return annotated_image, colored_text, str(filtered_entities)
|
235 |
|
236 |
term_of_use = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
"""
|
238 |
|
239 |
+
with gr.Blocks(title="Atualli Kosmos-2", theme=gr.themes.Base()).queue() as demo:
|
240 |
gr.Markdown(("""
|
241 |
+
# Atualli Kosmos-2: Analise contextual de imagens
|
|
|
242 |
"""))
|
243 |
with gr.Row():
|
244 |
with gr.Column():
|
245 |
image_input = gr.Image(type="pil", label="Test Image")
|
246 |
+
text_input = gr.Radio(["Brief", "Detailed"], label="Description Type", value="Detailed")
|
247 |
|
248 |
run_button = gr.Button(label="Run", visible=True)
|
249 |
|