Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ nn_model = NN(128, 64, 32)
|
|
76 |
cnn_model = CNN(1, 32)
|
77 |
phi_model = PhiModel(128)
|
78 |
|
79 |
-
dummy_input = torch.rand(1, 128) #
|
80 |
|
81 |
def iit_consciousness_processing(dummy_input):
|
82 |
flat_input = dummy_input.view(1, -1)
|
@@ -85,8 +85,11 @@ def iit_consciousness_processing(dummy_input):
|
|
85 |
snn_output = snn_model(flat_input)
|
86 |
rnn_output = rnn_model(flat_input.unsqueeze(1)) # Reshape to match RNN input
|
87 |
nn_output = nn_model(flat_input)
|
88 |
-
|
|
|
|
|
89 |
cnn_output = cnn_model(cnn_input)
|
|
|
90 |
phi_output = phi_model(flat_input)
|
91 |
|
92 |
consciousness_score = (
|
|
|
76 |
cnn_model = CNN(1, 32)
|
77 |
phi_model = PhiModel(128)
|
78 |
|
79 |
+
dummy_input = torch.rand(1, 128) # This is the input tensor for processing
|
80 |
|
81 |
def iit_consciousness_processing(dummy_input):
|
82 |
flat_input = dummy_input.view(1, -1)
|
|
|
85 |
snn_output = snn_model(flat_input)
|
86 |
rnn_output = rnn_model(flat_input.unsqueeze(1)) # Reshape to match RNN input
|
87 |
nn_output = nn_model(flat_input)
|
88 |
+
|
89 |
+
# Update CNN input shape to ensure it's correct
|
90 |
+
cnn_input = dummy_input.view(1, 1, 8, 16) # Change this to match CNN input size
|
91 |
cnn_output = cnn_model(cnn_input)
|
92 |
+
|
93 |
phi_output = phi_model(flat_input)
|
94 |
|
95 |
consciousness_score = (
|