Spaces:
Running
Running
Update main.py
Browse files
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=
|
| 48 |
-
tokenizer_name=
|
| 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,
|