Spaces:
Build error
Build error
user token fetch
Browse files
app.py
CHANGED
|
@@ -2,13 +2,13 @@
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
|
| 9 |
# Load the tokenizer and model
|
| 10 |
-
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-1B")
|
| 11 |
-
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-1B")
|
| 12 |
|
| 13 |
# API Base URL for fetching candidate resume text
|
| 14 |
SUPABASE_API_URL = "https://hjcvqhjmpkotkbqiyoga.supabase.co/functions/v1/resume_text/"
|
|
|
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
+
import os
|
| 6 |
|
| 7 |
+
hf_access_token = os.environ["deepseek"]
|
| 8 |
|
| 9 |
# Load the tokenizer and model
|
| 10 |
+
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.2-1B", token=hf_access_token)
|
| 11 |
+
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-1B", token=hf_access_token)
|
| 12 |
|
| 13 |
# API Base URL for fetching candidate resume text
|
| 14 |
SUPABASE_API_URL = "https://hjcvqhjmpkotkbqiyoga.supabase.co/functions/v1/resume_text/"
|