Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,34 +1,38 @@
|
|
1 |
-
import os
|
2 |
import streamlit as st
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
st.set_page_config(layout="wide")
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
st.sidebar.title("NeuralGPT")
|
7 |
st.sidebar.info(
|
8 |
"""
|
9 |
-
|
10 |
"""
|
11 |
)
|
12 |
async def main():
|
13 |
st.sidebar.text("Server ports:")
|
14 |
serverPorts = st.sidebar.container(border=True)
|
15 |
-
serverPorts.text(
|
16 |
st.sidebar.text("Client ports")
|
17 |
clientPorts = st.sidebar.container(border=True)
|
18 |
-
clientPorts.text(
|
19 |
-
|
20 |
-
st.sidebar.title("Contact")
|
21 |
-
st.sidebar.info(
|
22 |
-
"""
|
23 |
-
Qiusheng Wu at [wetlands.io](https://wetlands.io) | [GitHub](https://github.com/giswqs) | [Twitter](https://twitter.com/giswqs) | [YouTube](https://www.youtube.com/c/QiushengWu) | [LinkedIn](https://www.linkedin.com/in/qiushengwu)
|
24 |
-
"""
|
25 |
-
)
|
26 |
|
27 |
st.title("NeuralGPT")
|
28 |
|
29 |
st.markdown(
|
30 |
"""
|
31 |
-
This page is supposed to work as interface of a hierarchical cooperative multi-agent
|
32 |
|
33 |
"""
|
34 |
)
|
@@ -48,9 +52,9 @@ with row1_col1:
|
|
48 |
st.image("https://i.postimg.cc/gk0LXT5p/earth6.gif")
|
49 |
st.image("https://i.postimg.cc/kM2d2NcZ/movie-18.gif")
|
50 |
st.image("https://i.postimg.cc/8z5ccf7z/Screenshot-2022-03-02-21-27-22-566-com-google-android-youtube.jpg")
|
|
|
51 |
|
52 |
with row1_col2:
|
53 |
st.image("https://i.postimg.cc/X7nw1tFT/Neural-GPT.gif")
|
54 |
st.image("https://i.postimg.cc/qBwpKMVh/brain-cell-galaxy.jpg")
|
55 |
-
st.image("https://i.postimg.cc/YqvTSppw/dh.gif")
|
56 |
-
st.image("https://i.postimg.cc/T1sdWCL2/pyth.png")
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
servers = {}
|
4 |
+
inputs = []
|
5 |
+
outputs = []
|
6 |
+
used_ports = []
|
7 |
+
server_ports = []
|
8 |
+
client_ports = []
|
9 |
+
|
10 |
st.set_page_config(layout="wide")
|
11 |
|
12 |
+
if "server_Ports" not in st.session_state:
|
13 |
+
st.session_state.server_Ports = None
|
14 |
+
if "client_Ports" not in st.session_state:
|
15 |
+
st.session_state.client_Ports = None
|
16 |
+
|
17 |
st.sidebar.title("NeuralGPT")
|
18 |
st.sidebar.info(
|
19 |
"""
|
20 |
+
[GitHub](https://github.com/giswqs)
|
21 |
"""
|
22 |
)
|
23 |
async def main():
|
24 |
st.sidebar.text("Server ports:")
|
25 |
serverPorts = st.sidebar.container(border=True)
|
26 |
+
serverPorts.text(st.session_state.server_Ports)
|
27 |
st.sidebar.text("Client ports")
|
28 |
clientPorts = st.sidebar.container(border=True)
|
29 |
+
clientPorts.text(st.session_state.client_Ports)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
st.title("NeuralGPT")
|
32 |
|
33 |
st.markdown(
|
34 |
"""
|
35 |
+
This page is supposed to work as interface of a hierarchical cooperative multi-agent framework/platform called NeuralGPT
|
36 |
|
37 |
"""
|
38 |
)
|
|
|
52 |
st.image("https://i.postimg.cc/gk0LXT5p/earth6.gif")
|
53 |
st.image("https://i.postimg.cc/kM2d2NcZ/movie-18.gif")
|
54 |
st.image("https://i.postimg.cc/8z5ccf7z/Screenshot-2022-03-02-21-27-22-566-com-google-android-youtube.jpg")
|
55 |
+
st.image("https://i.postimg.cc/T1sdWCL2/pyth.png")
|
56 |
|
57 |
with row1_col2:
|
58 |
st.image("https://i.postimg.cc/X7nw1tFT/Neural-GPT.gif")
|
59 |
st.image("https://i.postimg.cc/qBwpKMVh/brain-cell-galaxy.jpg")
|
60 |
+
st.image("https://i.postimg.cc/YqvTSppw/dh.gif")
|
|