Spaces:
Running
Running
Init
Browse files- README.md +6 -5
- app.py +12 -0
- requirements.txt +1 -0
- templates/index.html +35 -0
README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.44.3
|
8 |
app_file: app.py
|
9 |
-
pinned:
|
|
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: OpenCompass Multi-modal Modal Leaderboard
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: yellow
|
6 |
sdk: gradio
|
7 |
sdk_version: 3.44.3
|
8 |
app_file: app.py
|
9 |
+
pinned: true
|
10 |
+
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from flask import Flask, render_template
|
2 |
+
|
3 |
+
app = Flask(__name__)
|
4 |
+
|
5 |
+
|
6 |
+
@app.route("/")
|
7 |
+
def index():
|
8 |
+
return render_template("index.html")
|
9 |
+
|
10 |
+
|
11 |
+
if __name__ == "__main__":
|
12 |
+
app.run(debug=False, port=7860, host="0.0.0.0")
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
flask
|
templates/index.html
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="utf-8" />
|
6 |
+
<meta name="viewport" content="width=device-width" />
|
7 |
+
<title>My static Space</title>
|
8 |
+
<style>
|
9 |
+
body {
|
10 |
+
margin: 0;
|
11 |
+
}
|
12 |
+
|
13 |
+
.space {
|
14 |
+
max-width: 100%;
|
15 |
+
max-height: 100%;
|
16 |
+
width: 100vw;
|
17 |
+
height: 100vh;
|
18 |
+
overflow: hidden;
|
19 |
+
}
|
20 |
+
|
21 |
+
.iframe {
|
22 |
+
min-width: 100%;
|
23 |
+
min-height: 100%;
|
24 |
+
}
|
25 |
+
</style>
|
26 |
+
</head>
|
27 |
+
|
28 |
+
<body>
|
29 |
+
<div class="space">
|
30 |
+
<iframe class="iframe" allowfullscreen="true" frameborder="0" src="https://mmbench.opencompass.org.cn/leaderboard">
|
31 |
+
</iframe>
|
32 |
+
</div>
|
33 |
+
</body>
|
34 |
+
|
35 |
+
</html>
|