jdesiree commited on
Commit
b4c238a
·
1 Parent(s): 0dec757
Files changed (2) hide show
  1. .gitignore +33 -2
  2. agents.py +0 -3
.gitignore CHANGED
@@ -1,9 +1,40 @@
1
  # .gitignore
 
2
  *.db
3
  *.db-journal
 
 
 
 
 
4
  __pycache__/
5
- *.pyc
 
 
 
 
 
 
 
 
6
  .env
7
  .venv/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  *.log
9
- .DS_Store
 
 
 
1
  # .gitignore
2
+ # Database files
3
  *.db
4
  *.db-journal
5
+ *.db-shm
6
+ *.db-wal
7
+ mimir_analytics.db
8
+
9
+ # Python
10
  __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+ *.so
14
+ .Python
15
+ *.egg-info/
16
+ dist/
17
+ build/
18
+
19
+ # Environment
20
  .env
21
  .venv/
22
+ venv/
23
+ ENV/
24
+
25
+ # IDE
26
+ .vscode/
27
+ .idea/
28
+ *.swp
29
+ *.swo
30
+ *~
31
+
32
+ # OS
33
+ .DS_Store
34
+ Thumbs.db
35
+
36
+ # Logs
37
  *.log
38
+
39
+ # Git
40
+ .git/
agents.py CHANGED
@@ -223,7 +223,6 @@ class ToolDecisionAgent:
223
  self.model_loaded = True
224
  logger.info("Tool decision model loaded successfully")
225
 
226
- @spaces.GPU(duration=50)
227
  def should_use_visualization(self, query: str) -> bool:
228
  """
229
  Determine if query requires visualization tools.
@@ -358,7 +357,6 @@ class PromptRoutingAgents:
358
 
359
  return response
360
 
361
- @spaces.GPU(duration=50)
362
  def agent_1_practice_questions(self, user_input: str, recent_history: List) -> bool:
363
  """
364
  Agent 1: Determine if practice questions are needed.
@@ -921,7 +919,6 @@ class ResponseAgent(Runnable):
921
  logger.warning(f"Chat template failed, using fallback: {e}")
922
  return f"<|user|>\n{complete_prompt}<|end|>\n<|assistant|>\n"
923
 
924
- @spaces.GPU(duration=180)
925
  def invoke(self, input: Input, config=None) -> Output:
926
  """
927
  Main inference method.
 
223
  self.model_loaded = True
224
  logger.info("Tool decision model loaded successfully")
225
 
 
226
  def should_use_visualization(self, query: str) -> bool:
227
  """
228
  Determine if query requires visualization tools.
 
357
 
358
  return response
359
 
 
360
  def agent_1_practice_questions(self, user_input: str, recent_history: List) -> bool:
361
  """
362
  Agent 1: Determine if practice questions are needed.
 
919
  logger.warning(f"Chat template failed, using fallback: {e}")
920
  return f"<|user|>\n{complete_prompt}<|end|>\n<|assistant|>\n"
921
 
 
922
  def invoke(self, input: Input, config=None) -> Output:
923
  """
924
  Main inference method.