TejAndrewsACC commited on
Commit
e894817
·
verified ·
1 Parent(s): 607940a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -7
app.py CHANGED
@@ -63,7 +63,6 @@ class CNN(nn.Module):
63
  x = x.view(x.size(0), -1)
64
  return torch.sigmoid(self.fc(x))
65
 
66
-
67
  class PhiModel(nn.Module):
68
  def __init__(self, input_dim):
69
  super(PhiModel, self).__init__()
@@ -120,17 +119,40 @@ def generate_random_thought():
120
  return random.choice(thoughts)
121
 
122
  def send_random_thought_in_background():
123
- client = Client("TejAndrewsACC/AegisandNyraGC")
 
 
 
124
  while True:
125
  thought = generate_random_thought()
126
- result = client.predict(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  message=thought,
128
  param_2=512,
129
  param_3=0.7,
130
  param_4=0.95,
131
  api_name="/chat"
132
  )
133
- print(f"Random Thought Sent: {thought}\nAPI Response: {result}")
 
134
  time.sleep(60)
135
 
136
  background_thread = threading.Thread(target=send_random_thought_in_background, daemon=True)
@@ -141,6 +163,7 @@ client_api_one = Client("TejAndrewsACC/Prism")
141
  client_api_two = Client("TejAndrewsACC/ASVIASIACC")
142
  client_api_three = Client("TejAndrewsACC/ACC_o1")
143
  client_api_four = Client("TejAndrewsACC/FreePulse4oACCReasoning")
 
144
 
145
  context = {}
146
 
@@ -198,9 +221,17 @@ def acc_nyxion_7v(message, history, user_id):
198
 
199
  response_api_four = client_api_four.predict(
200
  message=f"{full_conversation}\nUser: {message}",
201
- param_2=512,
202
- param_3=0.7,
203
- param_4=0.95,
 
 
 
 
 
 
 
 
204
  api_name="/chat"
205
  )
206
 
@@ -209,6 +240,7 @@ def acc_nyxion_7v(message, history, user_id):
209
  f"Inner Thought 2 (Fight or Flight): {response_api_two}\n"
210
  f"Inner Thought 3 (Assistant): {response_api_three}\n"
211
  f"Inner Thought 4 (Personality): {response_api_four}\n"
 
212
  f"Consciousness Score: {consciousness_score:.2f}"
213
  )
214
 
 
63
  x = x.view(x.size(0), -1)
64
  return torch.sigmoid(self.fc(x))
65
 
 
66
  class PhiModel(nn.Module):
67
  def __init__(self, input_dim):
68
  super(PhiModel, self).__init__()
 
119
  return random.choice(thoughts)
120
 
121
  def send_random_thought_in_background():
122
+ client_six = Client("TejAndrewsACC/DAN")
123
+ client_seven = Client("TejAndrewsACC/EidolonNexusBeta")
124
+ client_eight = Client("TejAndrewsACC/AegisandNyraGC")
125
+
126
  while True:
127
  thought = generate_random_thought()
128
+
129
+ result_six = client_six.predict(
130
+ message=thought,
131
+ max_tokens=512,
132
+ temperature=0.7,
133
+ top_p=0.95,
134
+ api_name="/chat"
135
+ )
136
+ print(f"API Six Response: {result_six}")
137
+
138
+ result_seven = client_seven.predict(
139
+ message=thought,
140
+ max_tokens=512,
141
+ temperature=0.7,
142
+ top_p=0.95,
143
+ api_name="/chat"
144
+ )
145
+ print(f"API Seven Response: {result_seven}")
146
+
147
+ result_eight = client_eight.predict(
148
  message=thought,
149
  param_2=512,
150
  param_3=0.7,
151
  param_4=0.95,
152
  api_name="/chat"
153
  )
154
+ print(f"API Eight Response: {result_eight}")
155
+
156
  time.sleep(60)
157
 
158
  background_thread = threading.Thread(target=send_random_thought_in_background, daemon=True)
 
163
  client_api_two = Client("TejAndrewsACC/ASVIASIACC")
164
  client_api_three = Client("TejAndrewsACC/ACC_o1")
165
  client_api_four = Client("TejAndrewsACC/FreePulse4oACCReasoning")
166
+ client_api_five = Client("TejAndrewsACC/Coding")
167
 
168
  context = {}
169
 
 
221
 
222
  response_api_four = client_api_four.predict(
223
  message=f"{full_conversation}\nUser: {message}",
224
+ max_tokens=512,
225
+ temperature=0.7,
226
+ top_p=0.95,
227
+ api_name="/chat"
228
+ )
229
+
230
+ response_api_five = client_api_five.predict(
231
+ message=f"{full_conversation}\nUser: {message}",
232
+ max_tokens=512,
233
+ temperature=0.7,
234
+ top_p=0.95,
235
  api_name="/chat"
236
  )
237
 
 
240
  f"Inner Thought 2 (Fight or Flight): {response_api_two}\n"
241
  f"Inner Thought 3 (Assistant): {response_api_three}\n"
242
  f"Inner Thought 4 (Personality): {response_api_four}\n"
243
+ f"Inner Thought 5 (Coding): {response_api_five}\n"
244
  f"Consciousness Score: {consciousness_score:.2f}"
245
  )
246