s3nh commited on
Commit
1f24b63
1 Parent(s): 7e40888

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +51 -0
utils.py CHANGED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+ import torch
3
+ from typing import List, Dict, Union
4
+
5
+
6
+ error_title_markdown = ("""
7
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
8
+ #<a href="https://github.com/PKU-YuanGroup/MoE-LLaVA" style="margin-right: 20px; text-decoration: none; display: flex; align-items: center;">
9
+ #<img src="https://s11.ax1x.com/2023/12/28/piqvDMV.png" alt="MoE-LLaVA🚀" style="max-width: 120px; height: auto;">
10
+ </a>
11
+ <div>
12
+ <h1 >MoE-LLaVA: Mixture of Experts for Large Vision-Language Models</h1>
13
+ <h4 style="margin: 0;">If you like our project, please give us a star ✨ on Github for the latest update.</h4>
14
+ #<h2 style="margin: 0.5;"><a href='https://github.com/PKU-YuanGroup/MoE-LLaVA'>https://github.com/PKU-YuanGroup/MoE-LLaVA</a></h2>
15
+ </div>
16
+ </div>
17
+ <div align="center">
18
+ <div style="display:flex; gap: 0.25rem;" align="center">
19
+ #<a href='https://github.com/PKU-YuanGroup/MoE-LLaVA'><img src='https://img.shields.io/badge/Github-Code-blue'></a>
20
+ #<a href="https://arxiv.org/pdf/2401.15947.pdf"><img src="https://img.shields.io/badge/Arxiv-2401.15947-red"></a>
21
+ #<a href='https://github.com/PKU-YuanGroup/MoE-LLaVA/stargazers'><img src='https://img.shields.io/github/stars/PKU-YuanGroup/MoE-LLaVA.svg?style=social'></a>
22
+
23
+ </div>
24
+ """)
25
+
26
+
27
+ title_markdown = ("""
28
+ <div style="display: flex; justify-content: center; align-items: center; text-align: center;"> </div>
29
+ <div>
30
+ <h1 >MoE-LLaVA: Mixture of Experts for Large Vision-Language Models</h1>a
31
+ </div>
32
+ <div align="center">
33
+ <div style="display:flex; gap: 0.25rem;" align="center"></div>
34
+ </div>
35
+ """)
36
+
37
+
38
+
39
+ block_css = """
40
+ #buttons button {
41
+ min-width: min(120px,100%);
42
+ }
43
+ """
44
+
45
+ tos_markdown = ("""
46
+ ### TOS MARKDOWN
47
+ """)
48
+
49
+ learn_more_markdown = ("""
50
+ ### Smart Solutions Contact
51
+ """)