Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
import asyncio
|
2 |
-
import streamlit as st
|
3 |
-
|
4 |
-
server_ports = []
|
5 |
-
client_ports = []
|
6 |
-
|
7 |
-
# Inicjalizacja danych w st.session_state
|
8 |
-
if "server_ports" not in st.session_state:
|
9 |
-
st.session_state['server_ports'] = ""
|
10 |
-
if "client_ports" not in st.session_state:
|
11 |
-
st.session_state['client_ports'] = ""
|
12 |
-
if "user_ID" not in st.session_state:
|
13 |
-
st.session_state.user_ID = ""
|
14 |
-
if "gradio_Port" not in st.session_state:
|
15 |
-
st.session_state.gradio_Port = ""
|
16 |
-
if "server" not in st.session_state:
|
17 |
-
st.session_state.server = False
|
18 |
-
if "client" not in st.session_state:
|
19 |
-
st.session_state.client = False
|
20 |
-
|
21 |
-
st.set_page_config(layout="wide")
|
22 |
-
|
23 |
-
async def main():
|
24 |
-
|
25 |
-
st.title("NeuralGPT")
|
26 |
-
|
27 |
-
gradio_Ports = st.container(border=True)
|
28 |
-
gradio_Ports.markdown(st.session_state.gradio_Port)
|
29 |
-
|
30 |
-
with st.sidebar:
|
31 |
-
# Wyświetlanie danych, które mogą być modyfikowane na różnych stronach
|
32 |
-
serverPorts = st.container(border=True)
|
33 |
-
serverPorts.markdown(st.session_state['server_ports'])
|
34 |
-
st.text("Client ports")
|
35 |
-
clientPorts = st.container(border=True)
|
36 |
-
clientPorts.markdown(st.session_state['client_ports'])
|
37 |
-
st.text("Character.ai ID")
|
38 |
-
user_id = st.container(border=True)
|
39 |
-
user_id.markdown(st.session_state.user_ID)
|
40 |
-
status = st.status(label="runs", state="complete", expanded=False)
|
41 |
-
|
42 |
-
if st.session_state.server == True:
|
43 |
-
st.markdown("server running...")
|
44 |
-
|
45 |
-
if st.session_state.client == True:
|
46 |
-
st.markdown("client running")
|
47 |
-
|
48 |
-
# Uruchomienie aplikacji
|
49 |
-
asyncio.run(main())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|