Spaces:
GIZ
/
Running on CPU Upgrade

File size: 909 Bytes
5c238c3
22b8e0b
550b85d
22b8e0b
 
 
31fb0f3
 
 
 
 
6233807
 
31fb0f3
22b8e0b
3a5641b
0d8c065
22b8e0b
 
 
0d8c065
5c238c3
3a5641b
3c905d2
31fb0f3
22b8e0b
 
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
import appStore.keyword_search as keyword_search
import appStore.sdg_analysis as sdg_analysis
import appStore.coherence as coherence
import appStore.info as info
from appStore.multiapp import MultiApp
import streamlit as st
import pkg_resources

def tmp_d():
    installed_packages = pkg_resources.working_set 
    list_ = ""
    for package in installed_packages:
        list_ = list_ + f"{package.key}=={package.version}\n"
    st.download_button('Download Requirements', list_, file_name='requirements.txt')

st.set_page_config(page_title = 'Climate Policy Intelligence', 
                   initial_sidebar_state='expanded', layout="wide") 

app = MultiApp()

app.add_app("About","house", info.app)
app.add_app("Search","search", keyword_search.app)
app.add_app("SDG Analysis","gear",sdg_analysis.app)
app.add_app("NDC Comparison","exclude", coherence.app)
app.add_app("download","gear",tmp_d)

app.run()