Spaces:
Sleeping
Sleeping
prithivMLmods
commited on
Commit
β’
c556fed
1
Parent(s):
b558724
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,7 @@ def load_models(inp):
|
|
20 |
print(type(inp))
|
21 |
print(inp)
|
22 |
print(models[inp])
|
23 |
-
|
24 |
-
#client_z.append(InferenceClient(models[inp]))
|
25 |
return gr.update(label=models[inp])
|
26 |
|
27 |
def format_prompt(message, history, cust_p):
|
@@ -32,7 +31,7 @@ def format_prompt(message, history, cust_p):
|
|
32 |
prompt += f"<start_of_turn>model{bot_response}<end_of_turn>"
|
33 |
if VERBOSE==True:
|
34 |
print(prompt)
|
35 |
-
|
36 |
prompt+=cust_p.replace("USER_INPUT",message)
|
37 |
return prompt
|
38 |
|
|
|
20 |
print(type(inp))
|
21 |
print(inp)
|
22 |
print(models[inp])
|
23 |
+
|
|
|
24 |
return gr.update(label=models[inp])
|
25 |
|
26 |
def format_prompt(message, history, cust_p):
|
|
|
31 |
prompt += f"<start_of_turn>model{bot_response}<end_of_turn>"
|
32 |
if VERBOSE==True:
|
33 |
print(prompt)
|
34 |
+
|
35 |
prompt+=cust_p.replace("USER_INPUT",message)
|
36 |
return prompt
|
37 |
|