Gopikanth123 commited on
Commit
0e3c01c
·
verified ·
1 Parent(s): 6db9ccd

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -11,7 +11,7 @@ HF_TOKEN = os.getenv("HF_TOKEN")
11
  if not HF_TOKEN:
12
  raise ValueError("HF_TOKEN environment variable not set.")
13
 
14
- repo_id = "xlm-roberta-base"
15
  llm_client = InferenceClient(
16
  model=repo_id,
17
  token=HF_TOKEN,
@@ -44,8 +44,8 @@ llm_client = InferenceClient(
44
  # )
45
  # Configure Llama index settings
46
  Settings.llm = HuggingFaceInferenceAPI(
47
- model_name="xlm-roberta-base",
48
- tokenizer_name="xlm-roberta-base",
49
  context_window=3000,
50
  token=HF_TOKEN,
51
  max_new_tokens=512,
 
11
  if not HF_TOKEN:
12
  raise ValueError("HF_TOKEN environment variable not set.")
13
 
14
+ repo_id = "FacebookAI/xlm-roberta-base"
15
  llm_client = InferenceClient(
16
  model=repo_id,
17
  token=HF_TOKEN,
 
44
  # )
45
  # Configure Llama index settings
46
  Settings.llm = HuggingFaceInferenceAPI(
47
+ model_name=repo_id,
48
+ tokenizer_name=repo_id,
49
  context_window=3000,
50
  token=HF_TOKEN,
51
  max_new_tokens=512,