Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import streamlit as st
|
|
2 |
import torch
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
|
|
|
|
|
5 |
# Load the fine-tuned model and tokenizer
|
6 |
model_repo_path = 'sabssag/Code-T5'
|
7 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_repo_path)
|
|
|
2 |
import torch
|
3 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
4 |
|
5 |
+
hf_token = st.secrets["huggingface"]["TOKEN"]
|
6 |
+
|
7 |
# Load the fine-tuned model and tokenizer
|
8 |
model_repo_path = 'sabssag/Code-T5'
|
9 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_repo_path)
|