File size: 4,406 Bytes
1777626
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
from flask import Flask, render_template_string

app = Flask(__name__)

@app.route('/')
def index():
    return render_template_string('''
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>avalia.se</title>
        <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;700&display=swap" rel="stylesheet">
        <style>
            body {
                font-family: 'Quicksand', sans-serif;
                text-align: center;
            }
            .app-link {
                display: inline-block;
                margin: 10px;
                text-decoration: none;
            }
            .app-image {
                width: 150px;
                height: auto;
                border: 2px solid transparent;
                transition: border 0.3s;
            }
            .app-image:hover {
                border: 2px solid #007bff;
            }
            .logo {
                width: 200px;
                height: auto;
                margin: 20px 0;
            }
        </style>
    </head>
    <body>
        <a href="/"><img src="images_avalia-removebg-preview.PNG" class="logo"></a>
        <div>
            <a href="/gradio_app_1" class="app-link">
                Gradio App 1
            </a>
            <a href="/gradio_app_2" class="app-link">
                Gradio App 2
            </a>
            <a href="/streamlit_app" class="app-link">
                Streamlit App
            </a>
        </div>
    </body>
    </html>
    ''')

@app.route('/gradio_app_1')
def gradio_app_1():
    return render_template_string('''
    <html>
    <head>
        <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;700&display=swap" rel="stylesheet">
        <style>
            body {
                font-family: 'Quicksand', sans-serif;
                text-align: center;
            }
            iframe {
                border: none;
                width: 100%;
                height: 800px;
            }
            .logo {
                width: 200px;
                height: auto;
                margin: 20px 0;
            }
        </style>
    </head>
    <body>
        <a href="/"><img src="images_avalia-removebg-preview.PNG" alt="AVALIA.SE" class="logo"></a>
        <h1>Gradio App 1</h1>
        <iframe src="https://fschwartzer-rl-2.hf.space"></iframe>
    </body>
    </html>
    ''')

@app.route('/gradio_app_2')
def gradio_app_2():
    return render_template_string('''
    <html>
    <head>
        <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;700&display=swap" rel="stylesheet">
        <style>
            body {
                font-family: 'Quicksand', sans-serif;
                text-align: center;
            }
            iframe {
                border: none;
                width: 100%;
                height: 800px;
            }
            .logo {
                width: 200px;
                height: auto;
                margin: 20px 0;
            }
        </style>
    </head>
    <body>
        <a href="/"><img src="images_avalia-removebg-preview.PNG" alt="AVALIA.SE" class="logo"></a>
        <h1>Gradio App 2</h1>
        <iframe src="https://fschwartzer-bens-moveis-vision.hf.space"></iframe>
    </body>
    </html>
    ''')

@app.route('/streamlit_app')
def streamlit_app():
    return render_template_string('''
    <html>
    <head>
        <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;700&display=swap" rel="stylesheet">
        <style>
            body {
                font-family: 'Quicksand', sans-serif;
                text-align: center;
            }
            iframe {
                border: none;
                width: 100%;
                height: 800px;
            }
            .logo {
                width: 200px;
                height: auto;
                margin: 20px 0;
            }
        </style>
    </head>
    <body>
        <a href="/"><img src="images_avalia-removebg-preview.PNG" alt="AVALIA.SE" class="logo"></a>
        <h1>Streamlit App</h1>
        <iframe src="https://fschwartzer-geo-dash-tabs.hf.space"></iframe>
    </body>
    </html>
    ''')

if __name__ == '__main__':
    app.run(debug=True, use_reloader=False)