rahimizadeh commited on
Commit
87379d1
·
verified ·
1 Parent(s): ffa426f

Update modules/analysis.py

Browse files
Files changed (1) hide show
  1. modules/analysis.py +7 -1
modules/analysis.py CHANGED
@@ -4,6 +4,11 @@ from transformers import pipeline
4
  from modules import parser, vectorizer
5
 
6
  def run_analysis(uploaded_files, text_input, query, quick_action, temperature, start_time, end_time):
 
 
 
 
 
7
  print("🔥 run_analysis called")
8
  logs_text = ""
9
 
@@ -35,4 +40,5 @@ def run_analysis(uploaded_files, text_input, query, quick_action, temperature, s
35
  alerts = [("CRITICAL", "8 blocked SSH attempts from 192.168.1.5"),
36
  ("WARNING", "4 port scanning alerts from 10.0.0.8")]
37
 
38
- return result, bar_data, pie_data, alerts
 
 
4
  from modules import parser, vectorizer
5
 
6
  def run_analysis(uploaded_files, text_input, query, quick_action, temperature, start_time, end_time):
7
+ print("🔥 run_analysis called") # Will appear in Application Logs
8
+ return "Function was triggered!", None, None, [("INFO", "Test log processed")]
9
+
10
+
11
+ """def run_analysis(uploaded_files, text_input, query, quick_action, temperature, start_time, end_time):
12
  print("🔥 run_analysis called")
13
  logs_text = ""
14
 
 
40
  alerts = [("CRITICAL", "8 blocked SSH attempts from 192.168.1.5"),
41
  ("WARNING", "4 port scanning alerts from 10.0.0.8")]
42
 
43
+ return result, bar_data, pie_data, alerts""
44
+