Zery commited on
Commit
e9f84ce
1 Parent(s): 608252c
Files changed (4) hide show
  1. README.md +7 -4
  2. app.py +12 -0
  3. requirements.txt +1 -0
  4. templates/index.html +33 -0
README.md CHANGED
@@ -1,13 +1,16 @@
1
  ---
2
  title: Alpha-CLIP LLaVA-1.5
3
- emoji: 🐠
4
- colorFrom: green
5
- colorTo: pink
6
  sdk: gradio
7
- sdk_version: 4.12.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
 
 
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Alpha-CLIP LLaVA-1.5
3
+ emoji: 🔥
4
+ colorFrom: indigo
5
+ colorTo: red
6
  sdk: gradio
7
+ sdk_version: 4.5.0
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
+ **Paper or resources for more information:**
14
+ [[Project](https://aleafy.github.io/alpha-clip/)] [[Paper](https://huggingface.co/papers/2312.03818)] [[Code](https://github.com/SunzeY/AlphaCLIP)]
15
+
16
  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,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ .space {
13
+ max-width: 100%;
14
+ max-height: 100%;
15
+ width: 100vw;
16
+ height: 100vh;
17
+ overflow: hidden;
18
+ }
19
+ .iframe {
20
+ min-width: 100%;
21
+ min-height: 100%;
22
+ }
23
+ </style>
24
+ </head>
25
+
26
+ <body>
27
+ <div class="space">
28
+ <iframe class="iframe" allowfullscreen="true" frameborder="0" src="https://g-app-center-001120-0385-ge51oyp.openxlab.space">
29
+ </iframe>
30
+ </div>
31
+ </body>
32
+
33
+ </html>