Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,11 @@ import streamlit as st
|
|
2 |
import pandas as pd
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
import torch
|
5 |
-
from huggingface_hub import login # For authentication
|
6 |
import os
|
7 |
-
from
|
|
|
8 |
load_dotenv()
|
|
|
9 |
|
10 |
# Authenticate with Hugging Face
|
11 |
def authenticate_huggingface():
|
|
|
2 |
import pandas as pd
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
import torch
|
|
|
5 |
import os
|
6 |
+
from huggingface_hub import login
|
7 |
+
from dotenv import load_dotenv()
|
8 |
load_dotenv()
|
9 |
+
# token = os.environ['YOUR_ACCESS_TOKEN_VARIABLE']
|
10 |
|
11 |
# Authenticate with Hugging Face
|
12 |
def authenticate_huggingface():
|