tree3po commited on
Commit
ec9e02c
1 Parent(s): 7e3649b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -70,7 +70,8 @@ def format_prompt_choose(message, history, model_name, new_models=None):
70
  mega_hist=[[],[],[],[]]
71
  def chat_inf_tree(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p,rep_p,hid_val):
72
  if len(client_choice)>=hid_val:
73
- client=client_z[int(hid_val)-1]
 
74
  if history:
75
  mega_hist[hid_val-1]=history
76
  #history = []
@@ -102,7 +103,8 @@ def chat_inf_a(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p
102
  if len(client_choice)>=hid_val:
103
  if system_prompt:
104
  system_prompt=f'{system_prompt}, '
105
- client1=client_z[int(hid_val)-1]
 
106
  if not history:
107
  history = []
108
  hist_len=0
@@ -131,7 +133,8 @@ def chat_inf_b(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p
131
  if len(client_choice)>=hid_val:
132
  if system_prompt:
133
  system_prompt=f'{system_prompt}, '
134
- client2=client_z[int(hid_val)-1]
 
135
  if not history:
136
  history = []
137
  hist_len=0
@@ -159,7 +162,8 @@ def chat_inf_c(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p
159
  if len(client_choice)>=hid_val:
160
  if system_prompt:
161
  system_prompt=f'{system_prompt}, '
162
- client3=client_z[int(hid_val)-1]
 
163
  if not history:
164
  history = []
165
  hist_len=0
@@ -187,7 +191,8 @@ def chat_inf_d(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p
187
  if len(client_choice)>=hid_val:
188
  if system_prompt:
189
  system_prompt=f'{system_prompt}, '
190
- client4=client_z[int(hid_val)-1]
 
191
  if not history:
192
  history = []
193
  hist_len=0
 
70
  mega_hist=[[],[],[],[]]
71
  def chat_inf_tree(system_prompt,prompt,history,client_choice,seed,temp,tokens,top_p,rep_p,hid_val):
72
  if len(client_choice)>=hid_val:
73
+ #client=client_z[int(hid_val)-1]
74
+ client = gr.load()
75
  if history:
76
  mega_hist[hid_val-1]=history
77
  #history = []
 
103
  if len(client_choice)>=hid_val:
104
  if system_prompt:
105
  system_prompt=f'{system_prompt}, '
106
+ #client1=client_z[int(hid_val)-1]
107
+ client1=gr.load(models[0])
108
  if not history:
109
  history = []
110
  hist_len=0
 
133
  if len(client_choice)>=hid_val:
134
  if system_prompt:
135
  system_prompt=f'{system_prompt}, '
136
+ #client2=client_z[int(hid_val)-1]
137
+ client2=gr.load(models[1])
138
  if not history:
139
  history = []
140
  hist_len=0
 
162
  if len(client_choice)>=hid_val:
163
  if system_prompt:
164
  system_prompt=f'{system_prompt}, '
165
+ #client3=client_z[int(hid_val)-1]
166
+ client3=gr.load(models[2])
167
  if not history:
168
  history = []
169
  hist_len=0
 
191
  if len(client_choice)>=hid_val:
192
  if system_prompt:
193
  system_prompt=f'{system_prompt}, '
194
+ #client4=client_z[int(hid_val)-1]
195
+ client4=gr.load(models[3])
196
  if not history:
197
  history = []
198
  hist_len=0