Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,11 +35,22 @@ if os.path.exists(output_path):
|
|
35 |
else:
|
36 |
st.write("Failed to download the file.")
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
# Carregar o m贸dulo SynapseControl usando importlib.util
|
39 |
module_name = "SynapseControl"
|
40 |
spec = importlib.util.spec_from_file_location(module_name, output_path)
|
41 |
SynapseControl = importlib.util.module_from_spec(spec)
|
42 |
sys.modules[module_name] = SynapseControl
|
|
|
43 |
try:
|
44 |
spec.loader.exec_module(SynapseControl)
|
45 |
st.write("SynapseControl module loaded successfully.")
|
@@ -58,4 +69,6 @@ except Exception as e:
|
|
58 |
|
59 |
import keys as key
|
60 |
|
|
|
|
|
61 |
st.title("Neurocognitive Structures")
|
|
|
35 |
else:
|
36 |
st.write("Failed to download the file.")
|
37 |
|
38 |
+
# Verificar se todos os m贸dulos Python necess谩rios est茫o dispon铆veis
|
39 |
+
try:
|
40 |
+
import LongTermMemory
|
41 |
+
import ShortTermMemory
|
42 |
+
import SynapseControl as SC_Py
|
43 |
+
import Criptografia
|
44 |
+
st.write("Todos os m贸dulos Python foram importados com sucesso.")
|
45 |
+
except ModuleNotFoundError as e:
|
46 |
+
st.write(f"Erro ao importar m贸dulo: {e}")
|
47 |
+
|
48 |
# Carregar o m贸dulo SynapseControl usando importlib.util
|
49 |
module_name = "SynapseControl"
|
50 |
spec = importlib.util.spec_from_file_location(module_name, output_path)
|
51 |
SynapseControl = importlib.util.module_from_spec(spec)
|
52 |
sys.modules[module_name] = SynapseControl
|
53 |
+
|
54 |
try:
|
55 |
spec.loader.exec_module(SynapseControl)
|
56 |
st.write("SynapseControl module loaded successfully.")
|
|
|
69 |
|
70 |
import keys as key
|
71 |
|
72 |
+
st.title("Neurocognitive Structures")
|
73 |
+
|
74 |
st.title("Neurocognitive Structures")
|