sabssag commited on
Commit
b929282
·
verified ·
1 Parent(s): 0652586

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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)