Commit
·
1b6ac29
1
Parent(s):
1658f28
add more links
Browse files- app.py +17 -9
- demo/chat_frontend.py +2 -3
- demo/generation_frontend.py +2 -3
app.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
# Email : [email protected]
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-11 15:34
|
| 9 |
-
# Last Modified : 2023-12-
|
| 10 |
# File Name : app.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
@@ -38,16 +38,24 @@ args = parser.parse_args()
|
|
| 38 |
|
| 39 |
if __name__ == "__main__":
|
| 40 |
title = "Emu2: Generative Multimodal Models are In-Context Learners<br> \
|
| 41 |
-
<
|
| 42 |
-
|
| 43 |
-
|<a href='https://github.com/baaivision/Emu' target='_blank' rel='noopener'>code</a
|
| 44 |
-
</
|
| 45 |
-
|
| 46 |
-
<
|
| 47 |
-
|
| 48 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
"
|
| 50 |
|
|
|
|
| 51 |
interface_list, tab_names = [], []
|
| 52 |
if not args.disable_generate:
|
| 53 |
demo_generation = build_generation(args)
|
|
|
|
| 6 |
# Email : [email protected]
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-11 15:34
|
| 9 |
+
# Last Modified : 2023-12-21 01:01
|
| 10 |
# File Name : app.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
|
|
| 38 |
|
| 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 |
|
| 58 |
+
|
| 59 |
interface_list, tab_names = [], []
|
| 60 |
if not args.disable_generate:
|
| 61 |
demo_generation = build_generation(args)
|
demo/chat_frontend.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
# Email : [email protected]
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-12 18:05
|
| 9 |
-
# Last Modified : 2023-12-
|
| 10 |
# File Name : chat_frontend.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
@@ -23,7 +23,7 @@ import gradio as gr
|
|
| 23 |
from .meta import ConvMeta, Role, DataMeta
|
| 24 |
from .utils import extract_frames
|
| 25 |
from .utils import frontend_logger as logging
|
| 26 |
-
from .constants import
|
| 27 |
|
| 28 |
CONTROLLER_URL = ""
|
| 29 |
|
|
@@ -216,7 +216,6 @@ def build_chat(args):
|
|
| 216 |
)
|
| 217 |
|
| 218 |
gr.Markdown(TERM_OF_USE)
|
| 219 |
-
gr.Markdown(LICENSE)
|
| 220 |
|
| 221 |
|
| 222 |
clear_btn.click(clear_history, inputs=state, outputs=[chatbot, state])
|
|
|
|
| 6 |
# Email : [email protected]
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-12 18:05
|
| 9 |
+
# Last Modified : 2023-12-21 00:40
|
| 10 |
# File Name : chat_frontend.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
|
|
| 23 |
from .meta import ConvMeta, Role, DataMeta
|
| 24 |
from .utils import extract_frames
|
| 25 |
from .utils import frontend_logger as logging
|
| 26 |
+
from .constants import TERM_OF_USE
|
| 27 |
|
| 28 |
CONTROLLER_URL = ""
|
| 29 |
|
|
|
|
| 216 |
)
|
| 217 |
|
| 218 |
gr.Markdown(TERM_OF_USE)
|
|
|
|
| 219 |
|
| 220 |
|
| 221 |
clear_btn.click(clear_history, inputs=state, outputs=[chatbot, state])
|
demo/generation_frontend.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
# Email : [email protected]
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-11 15:35
|
| 9 |
-
# Last Modified : 2023-12-
|
| 10 |
# File Name : generation_frontend.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
@@ -24,7 +24,7 @@ import gradio as gr
|
|
| 24 |
from .constants import EVA_IMAGE_SIZE
|
| 25 |
from .meta import ConvMeta, Role, DataMeta
|
| 26 |
from .utils import frontend_logger as logging
|
| 27 |
-
from .constants import
|
| 28 |
|
| 29 |
CONTROLLER_URL = ""
|
| 30 |
|
|
@@ -219,7 +219,6 @@ def build_generation(args):
|
|
| 219 |
|
| 220 |
|
| 221 |
gr.Markdown(TERM_OF_USE)
|
| 222 |
-
gr.Markdown(LICENSE)
|
| 223 |
|
| 224 |
clear_btn.click(clear_history, inputs=state, outputs=[chatbot, state])
|
| 225 |
|
|
|
|
| 6 |
# Email : [email protected]
|
| 7 |
# Institute : Beijing Academy of Artificial Intelligence (BAAI)
|
| 8 |
# Create On : 2023-12-11 15:35
|
| 9 |
+
# Last Modified : 2023-12-21 00:41
|
| 10 |
# File Name : generation_frontend.py
|
| 11 |
# Description :
|
| 12 |
#
|
|
|
|
| 24 |
from .constants import EVA_IMAGE_SIZE
|
| 25 |
from .meta import ConvMeta, Role, DataMeta
|
| 26 |
from .utils import frontend_logger as logging
|
| 27 |
+
from .constants import TERM_OF_USE
|
| 28 |
|
| 29 |
CONTROLLER_URL = ""
|
| 30 |
|
|
|
|
| 219 |
|
| 220 |
|
| 221 |
gr.Markdown(TERM_OF_USE)
|
|
|
|
| 222 |
|
| 223 |
clear_btn.click(clear_history, inputs=state, outputs=[chatbot, state])
|
| 224 |
|