Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
|
3 |
-
import os
|
4 |
-
from huggingface_hub import login
|
5 |
-
|
6 |
-
# Retrieve the token from environment variable
|
7 |
-
hf_token = os.getenv("TUTOR_LLAMA")
|
8 |
-
login(token=hf_token)
|
9 |
|
10 |
# Load Math Arabic LLaMA model and tokenizer
|
11 |
tokenizer = AutoTokenizer.from_pretrained("Jr23xd23/Math_Arabic_Llama-3.2-3B-Instruct")
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
# Load Math Arabic LLaMA model and tokenizer
|
5 |
tokenizer = AutoTokenizer.from_pretrained("Jr23xd23/Math_Arabic_Llama-3.2-3B-Instruct")
|