Athspi commited on
Commit
6a66c52
·
verified ·
1 Parent(s): 23c1855

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -12
app.py CHANGED
@@ -26,8 +26,7 @@ class CognitiveArchitecture:
26
  "GEMINI": os.environ.get("GEMINI_API_KEY"),
27
  "MISTRAL": os.environ.get("MISTRAL_API_KEY"),
28
  "OPENROUTER": os.environ.get("OPENROUTER_API_KEY"),
29
- "AZURE": os.environ.get("AZURE_API_KEY"),
30
- "ANTHROPIC": os.environ.get("ANTHROPIC_API_KEY")
31
  }
32
  self.validate_keys()
33
 
@@ -48,8 +47,7 @@ class CognitiveArchitecture:
48
  "Qwen": "qwen/qwen-vl-plus:free",
49
  "Llama": "meta-llama/llama-3.3-70b-instruct:free",
50
  "Mistral": "mistral-large-latest",
51
- "GPT4o": "gpt-4o",
52
- "Claude": "deepseek/deepseek-r1:free" # Replaced Claude with DeepSeek
53
  }
54
 
55
  self.headers = {
@@ -61,10 +59,6 @@ class CognitiveArchitecture:
61
  "Authorization": f"Bearer {self.api_keys['MISTRAL']}",
62
  "Content-Type": "application/json",
63
  "Accept": "application/json"
64
- },
65
- "Anthropic": {
66
- "x-api-key": self.api_keys["ANTHROPIC"],
67
- "Content-Type": "application/json"
68
  }
69
  }
70
 
@@ -108,7 +102,7 @@ class CognitiveArchitecture:
108
  self._call_gpt4o, prompt, context
109
  )
110
 
111
- elif model_role == "Claude":
112
  result = await asyncio.to_thread(
113
  self._call_deepseek, prompt, context # Updated to DeepSeek
114
  )
@@ -846,7 +840,5 @@ if __name__ == "__main__":
846
  app.launch(
847
  server_name="0.0.0.0",
848
  server_port=7860,
849
- share=True, # Creates a public link for sharing
850
- debug=True,
851
- enable_queue=True
852
  )
 
26
  "GEMINI": os.environ.get("GEMINI_API_KEY"),
27
  "MISTRAL": os.environ.get("MISTRAL_API_KEY"),
28
  "OPENROUTER": os.environ.get("OPENROUTER_API_KEY"),
29
+ "AZURE": os.environ.get("AZURE_API_KEY")
 
30
  }
31
  self.validate_keys()
32
 
 
47
  "Qwen": "qwen/qwen-vl-plus:free",
48
  "Llama": "meta-llama/llama-3.3-70b-instruct:free",
49
  "Mistral": "mistral-large-latest",
50
+ "GPT4o": "gpt-4o"
 
51
  }
52
 
53
  self.headers = {
 
59
  "Authorization": f"Bearer {self.api_keys['MISTRAL']}",
60
  "Content-Type": "application/json",
61
  "Accept": "application/json"
 
 
 
 
62
  }
63
  }
64
 
 
102
  self._call_gpt4o, prompt, context
103
  )
104
 
105
+ elif model_role == "DeepSeek":
106
  result = await asyncio.to_thread(
107
  self._call_deepseek, prompt, context # Updated to DeepSeek
108
  )
 
840
  app.launch(
841
  server_name="0.0.0.0",
842
  server_port=7860,
843
+ share=True # Creates a public link for sharing
 
 
844
  )