IJ-Reynolds HF Staff commited on
Commit
020fc24
·
verified ·
1 Parent(s): 1a3434a

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +2 -2
streamlit_app.py CHANGED
@@ -294,7 +294,7 @@ if active_df is not None and not active_df.empty:
294
 
295
  messages = [{"role": "user", "content": prompt}]
296
  try:
297
- briefing_client = InferenceClient("meta-llama/Llama-3.1-8B-Instruct", token=os.getenv("HF_TOKEN"))
298
  response = briefing_client.chat_completion(messages, max_tokens=500, temperature=0.2)
299
  st.session_state.exec_briefing = response.choices[0].message.content
300
  st.rerun()
@@ -331,7 +331,7 @@ if active_df is not None and not active_df.empty:
331
  hf_token = os.getenv("HF_TOKEN")
332
 
333
  if hf_token:
334
- ui_client = InferenceClient("meta-llama/Llama-3.1-8B-Instruct", token=hf_token)
335
  for i in range(num_clusters):
336
  cluster_df = weekly_df[weekly_df['cluster'] == i]
337
  sample_texts = "\n".join(cluster_df['title'].head(8).tolist())
 
294
 
295
  messages = [{"role": "user", "content": prompt}]
296
  try:
297
+ briefing_client = InferenceClient("Qwen/Qwen2.5-7B-Instruct", token=os.getenv("HF_TOKEN"))
298
  response = briefing_client.chat_completion(messages, max_tokens=500, temperature=0.2)
299
  st.session_state.exec_briefing = response.choices[0].message.content
300
  st.rerun()
 
331
  hf_token = os.getenv("HF_TOKEN")
332
 
333
  if hf_token:
334
+ ui_client = InferenceClient("Qwen/Qwen2.5-7B-Instruct", token=hf_token)
335
  for i in range(num_clusters):
336
  cluster_df = weekly_df[weekly_df['cluster'] == i]
337
  sample_texts = "\n".join(cluster_df['title'].head(8).tolist())