Spaces:
Sleeping
Sleeping
Resolved merge conflict in README.md
Browse files- .gitattributes +35 -0
- README.md +1 -2
- app.py +58 -0
.gitattributes
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
|
10 |
|
11 |
|
12 |
-
|
13 |
|
14 |
|
15 |
[](https://github.com/Gojo-Bots/Gojo_Satoru/fork)
|
@@ -300,4 +300,3 @@ Some special thanks to the person/repo who/which helped and motivated me to crea
|
|
300 |
<a href="https://github.com/Gojo-Bots"><img src="https://artfiles.alphacoders.com/160/160160.jpeg" alt="Gojo Bots"></a></br></br>
|
301 |
|
302 |
</p>
|
303 |
-
|
|
|
9 |
|
10 |
|
11 |
|
12 |
+
|
13 |
|
14 |
|
15 |
[](https://github.com/Gojo-Bots/Gojo_Satoru/fork)
|
|
|
300 |
<a href="https://github.com/Gojo-Bots"><img src="https://artfiles.alphacoders.com/160/160160.jpeg" alt="Gojo Bots"></a></br></br>
|
301 |
|
302 |
</p>
|
|
app.py
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import subprocess
|
3 |
+
import sys
|
4 |
+
import streamlit as st
|
5 |
+
|
6 |
+
process = None # Global variable to store process
|
7 |
+
|
8 |
+
|
9 |
+
def start_process():
|
10 |
+
global process
|
11 |
+
if process is None or process.poll() is not None: # Check if process isn't running
|
12 |
+
process = subprocess.Popen([sys.executable, "-m", "Powers"])
|
13 |
+
st.success(f"Process started with PID: {process.pid}")
|
14 |
+
else:
|
15 |
+
st.warning("The process is already running.")
|
16 |
+
|
17 |
+
|
18 |
+
def stop_process():
|
19 |
+
global process
|
20 |
+
if process and process.poll() is None: # Check if process is running
|
21 |
+
process.terminate() # Stop process
|
22 |
+
process.wait()
|
23 |
+
st.success("Process stopped.")
|
24 |
+
else:
|
25 |
+
st.warning("The process is not running.")
|
26 |
+
|
27 |
+
|
28 |
+
def restart_process():
|
29 |
+
stop_process()
|
30 |
+
start_process()
|
31 |
+
st.success("Process restarted.")
|
32 |
+
|
33 |
+
|
34 |
+
def main():
|
35 |
+
st.title("Process Control Panel")
|
36 |
+
|
37 |
+
if not os.path.exists("Seonari"):
|
38 |
+
st.write("Cloning repository...")
|
39 |
+
subprocess.run(["git", "clone", "https://github.com/taslim19/Seonari"], check=True)
|
40 |
+
|
41 |
+
os.chdir("Seonari")
|
42 |
+
|
43 |
+
st.write("Installing dependencies...")
|
44 |
+
subprocess.run([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"], check=True)
|
45 |
+
|
46 |
+
# Display buttons on the Streamlit app
|
47 |
+
if st.button("Start"):
|
48 |
+
start_process()
|
49 |
+
|
50 |
+
if st.button("Stop"):
|
51 |
+
stop_process()
|
52 |
+
|
53 |
+
if st.button("Restart"):
|
54 |
+
restart_process()
|
55 |
+
|
56 |
+
|
57 |
+
if __name__ == "__main__":
|
58 |
+
main()
|