Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import torch
|
| 2 |
import streamlit as st
|
| 3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments, Trainer
|
|
@@ -5,8 +6,7 @@ from peft import LoraConfig, get_peft_model, TaskType
|
|
| 5 |
from huggingface_hub import HfApi, Repository
|
| 6 |
from datasets import load_dataset
|
| 7 |
|
| 8 |
-
|
| 9 |
-
HF_TOKEN = "your_huggingface_token"
|
| 10 |
REPO_NAME = "tinyllama-lora-finetuned"
|
| 11 |
|
| 12 |
# Initialize Streamlit
|
|
|
|
| 1 |
+
import os
|
| 2 |
import torch
|
| 3 |
import streamlit as st
|
| 4 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TrainingArguments, Trainer
|
|
|
|
| 6 |
from huggingface_hub import HfApi, Repository
|
| 7 |
from datasets import load_dataset
|
| 8 |
|
| 9 |
+
HF_TOKEN = os.getenv("HF_TOKEN")
|
|
|
|
| 10 |
REPO_NAME = "tinyllama-lora-finetuned"
|
| 11 |
|
| 12 |
# Initialize Streamlit
|