Staticaliza commited on
Commit
444efa4
1 Parent(s): f7d5ff7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,6 @@ for model_name, model_endpoint in API_ENDPOINTS.items():
28
  CLIENTS[model_name] = InferenceClient(model_endpoint, headers = { "Authorization": f"Bearer {API_TOKEN}" })
29
 
30
  def format(instruction = DEFAULT_INSTRUCTION, history = [], input = "", preinput = ""):
31
- print(history)
32
  sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
33
  formatted_history = '\n'.join(f"{sy_l}{message}{sy_r}" for message in history)
34
  formatted_input = f"System: {sy_l}{instruction}{sy_r}\n{formatted_history}\n{sy_l}{input}{sy_r}\n{preinput}"
@@ -73,6 +72,7 @@ def predict(instruction, history, input, preinput, access_key, model, temperatur
73
  return (get_result, input, history)
74
 
75
  def clear_history():
 
76
  return []
77
 
78
  def maintain_cloud():
 
28
  CLIENTS[model_name] = InferenceClient(model_endpoint, headers = { "Authorization": f"Bearer {API_TOKEN}" })
29
 
30
  def format(instruction = DEFAULT_INSTRUCTION, history = [], input = "", preinput = ""):
 
31
  sy_l, sy_r = SPECIAL_SYMBOLS[0], SPECIAL_SYMBOLS[1]
32
  formatted_history = '\n'.join(f"{sy_l}{message}{sy_r}" for message in history)
33
  formatted_input = f"System: {sy_l}{instruction}{sy_r}\n{formatted_history}\n{sy_l}{input}{sy_r}\n{preinput}"
 
72
  return (get_result, input, history)
73
 
74
  def clear_history():
75
+ print(">>> HISTORY CLEARED!")
76
  return []
77
 
78
  def maintain_cloud():