coldn00dl3s commited on
Commit
22715c0
·
verified ·
1 Parent(s): b516523

updated description

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -36,8 +36,7 @@ def get_response_from_gemini(prompt: str, key) -> str:
36
  return response.text.strip()
37
 
38
  def get_response_from_deepseek(prompt: str, key) -> str:
39
- response = requests.
40
- post(
41
  url="https://openrouter.ai/api/v1/chat/completions",
42
  headers={"Authorization": f"Bearer {key}"},
43
  data=json.dumps({
@@ -149,9 +148,6 @@ def preprocess_inputs(prompt: str, response_a: str, response_b: str, tokenizer,
149
  ]).reshape(1, -1).astype(np.float32)
150
  return encoded["input_ids"], encoded["attention_mask"], metrics
151
 
152
- # === History Buffer ===
153
- if "history" not in st.session_state:
154
- st.session_state.history = []
155
 
156
  # === Streamlit UI ===
157
  st.set_page_config(page_title="LMSYS Demo", layout="wide")
 
36
  return response.text.strip()
37
 
38
  def get_response_from_deepseek(prompt: str, key) -> str:
39
+ response = requests.post(
 
40
  url="https://openrouter.ai/api/v1/chat/completions",
41
  headers={"Authorization": f"Bearer {key}"},
42
  data=json.dumps({
 
148
  ]).reshape(1, -1).astype(np.float32)
149
  return encoded["input_ids"], encoded["attention_mask"], metrics
150
 
 
 
 
151
 
152
  # === Streamlit UI ===
153
  st.set_page_config(page_title="LMSYS Demo", layout="wide")