npuliga commited on
Commit
b73e290
·
1 Parent(s): b6f27fa

updated app file

Browse files
Files changed (1) hide show
  1. app.py +13 -10
app.py CHANGED
@@ -31,6 +31,9 @@ def load_data() -> str:
31
  try:
32
  df, status_msg = load_csv_from_folder(DATA_FOLDER)
33
  if not df.empty:
 
 
 
34
  DB["data"] = df
35
  return status_msg
36
  except Exception as e:
@@ -290,16 +293,16 @@ APP_VERSION = "v2.2.0"
290
  # Global constants used across all experiments
291
  GLOBAL_CONSTANTS = """
292
  **Global Constants (Applied to All Domains):**
293
- - **Summarization Model:** fangyuan/nq_abstractive_compressor
294
- - **Generator Model:** llama-3.1-8b-instant
295
- - **Generator Max Tokens:** 512
296
- - **Generator Temperature:** 0.2
297
- - **Generator API Provider:** Groq
298
- - **Generation LLM Context Budget:** 2000
299
- - **Judge Model:** llama-3.3-70b-versatile
300
- - **Judge Max Tokens:** 1024
301
- - **Judge Temperature:** 0
302
- - **Judge Sentence Attribution:** ENABLED
303
  """
304
 
305
  with gr.Blocks(title="RAG Analytics Pro") as demo:
 
31
  try:
32
  df, status_msg = load_csv_from_folder(DATA_FOLDER)
33
  if not df.empty:
34
+ # Remove failed_samples column if it exists
35
+ if 'failed_samples' in df.columns:
36
+ df = df.drop(columns=['failed_samples'])
37
  DB["data"] = df
38
  return status_msg
39
  except Exception as e:
 
293
  # Global constants used across all experiments
294
  GLOBAL_CONSTANTS = """
295
  **Global Constants (Applied to All Domains):**
296
+ - Generator Model: **llama-3.1-8b-instant**
297
+ - Generator Max Tokens: **512**
298
+ - Generator Temperature: **0.2**
299
+ - Generator API Provider: **Groq**
300
+ - Generation LLM Context Budget: **2000**
301
+ - Judge Model: **llama-3.3-70b-versatile**
302
+ - Judge Max Tokens: **1024**
303
+ - Judge Temperature: **0.0**
304
+ - Judge Sentence Attribution: **ENABLED**
305
+ - Summarization Model: **fangyuan/nq_abstractive_compressor**
306
  """
307
 
308
  with gr.Blocks(title="RAG Analytics Pro") as demo: