Commit
·
0a9d7de
1
Parent(s):
1b6ac29
fix type
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
# Email : zhangfan@baai.ac.cn
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-11 15:34
|
| 9 |
-
# Last Modified : 2023-12-21 01:
|
| 10 |
# File Name : app.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
@@ -39,19 +39,19 @@ args = parser.parse_args()
|
|
| 39 |
if __name__ == "__main__":
|
| 40 |
title = "Emu2: Generative Multimodal Models are In-Context Learners<br> \
|
| 41 |
<h2 align='center'> \
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
</h2> \
|
| 46 |
<h3 align='center'> \
|
| 47 |
🤗HF models: \
|
| 48 |
-
<a href='https://huggingface.co/BAAI/Emu2' target='_blank' rel='noopener'>Emu2</a
|
| 49 |
-
<a href='https://huggingface.co/BAAI/Emu2-Chat' target='_blank' rel='noopener'>Emu2-Chat</a
|
| 50 |
<a href='https://huggingface.co/BAAI/Emu2-Gen' target='_blank' rel='noopener'>Emu2-Gen</a> \
|
| 51 |
</h3> \
|
| 52 |
<h4 align='center'> \
|
| 53 |
-
|
| 54 |
-
|
| 55 |
</h4> \
|
| 56 |
"
|
| 57 |
|
|
@@ -60,12 +60,12 @@ if __name__ == "__main__":
|
|
| 60 |
if not args.disable_generate:
|
| 61 |
demo_generation = build_generation(args)
|
| 62 |
interface_list.append(demo_generation)
|
| 63 |
-
tab_names.append("
|
| 64 |
|
| 65 |
if not args.disable_chat:
|
| 66 |
demo_chat = build_chat(args)
|
| 67 |
interface_list.append(demo_chat)
|
| 68 |
-
tab_names.append("
|
| 69 |
|
| 70 |
demo_all = gr.TabbedInterface(
|
| 71 |
interface_list=interface_list,
|
|
|
|
| 6 |
# Email : zhangfan@baai.ac.cn
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-11 15:34
|
| 9 |
+
# Last Modified : 2023-12-21 01:55
|
| 10 |
# File Name : app.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
|
|
| 39 |
if __name__ == "__main__":
|
| 40 |
title = "Emu2: Generative Multimodal Models are In-Context Learners<br> \
|
| 41 |
<h2 align='center'> \
|
| 42 |
+
[<a href='https://baaivision.github.io/emu2' target='_blank' rel='noopener'>project page</a>] \
|
| 43 |
+
[<a href='https://github.com/baaivision/Emu' target='_blank' rel='noopener'>code</a>] \
|
| 44 |
+
[<a href='https://arxiv.org/abs/2307.05222' target='_blank' rel='noopener'>paper</a>] \
|
| 45 |
</h2> \
|
| 46 |
<h3 align='center'> \
|
| 47 |
🤗HF models: \
|
| 48 |
+
<a href='https://huggingface.co/BAAI/Emu2' target='_blank' rel='noopener'>Emu2</a> | \
|
| 49 |
+
<a href='https://huggingface.co/BAAI/Emu2-Chat' target='_blank' rel='noopener'>Emu2-Chat</a> | \
|
| 50 |
<a href='https://huggingface.co/BAAI/Emu2-Gen' target='_blank' rel='noopener'>Emu2-Gen</a> \
|
| 51 |
</h3> \
|
| 52 |
<h4 align='center'> \
|
| 53 |
+
[<a href='https://jwolpxeehx.feishu.cn/docx/KskPdU99FomufKx4G9hcQMeQnHv' target='_blank' rel='noopener'>使用说明</a>] \
|
| 54 |
+
[<a href='https://jwolpxeehx.feishu.cn/docx/RYHNd1tvEo8k8Mx9HeMcvvxWnvZ' target='_blank' rel='noopener'>User Guide</a>] \
|
| 55 |
</h4> \
|
| 56 |
"
|
| 57 |
|
|
|
|
| 60 |
if not args.disable_generate:
|
| 61 |
demo_generation = build_generation(args)
|
| 62 |
interface_list.append(demo_generation)
|
| 63 |
+
tab_names.append("Multimodal Generation")
|
| 64 |
|
| 65 |
if not args.disable_chat:
|
| 66 |
demo_chat = build_chat(args)
|
| 67 |
interface_list.append(demo_chat)
|
| 68 |
+
tab_names.append("Multimodal Chat")
|
| 69 |
|
| 70 |
demo_all = gr.TabbedInterface(
|
| 71 |
interface_list=interface_list,
|