Spaces:
Running
Running
Staticaliza
commited on
Commit
•
fffd67e
1
Parent(s):
69d55a1
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def format(instruction, history, input, wrap):
|
|
38 |
return f"{formatted_input}{wrapped_input}", formatted_input
|
39 |
|
40 |
def predict(access_key, instruction, history, input, wrap, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed):
|
41 |
-
|
42 |
if (access_key != KEY):
|
43 |
print(">>> MODEL FAILED: Input: " + input + ", Attempted Key: " + access_key)
|
44 |
return ("[UNAUTHORIZED ACCESS]", input, []);
|
|
|
38 |
return f"{formatted_input}{wrapped_input}", formatted_input
|
39 |
|
40 |
def predict(access_key, instruction, history, input, wrap, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed):
|
41 |
+
print(model)
|
42 |
if (access_key != KEY):
|
43 |
print(">>> MODEL FAILED: Input: " + input + ", Attempted Key: " + access_key)
|
44 |
return ("[UNAUTHORIZED ACCESS]", input, []);
|