Sidharthkr commited on
Commit
733a339
1 Parent(s): 97a3416

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  import os
3
  from transformers import pipeline
4
- hgsec = os.getenv("HF_token")
5
- from huggingface_hub import login
6
- login(token = hgsec)
7
- summarizer = pipeline("summarization", model="Sidharthkr/InstructTweetSummarizer", use_auth_token = hgsec)#, trust_remote_code=True)
8
  def summarymaker(instruction = "", tweets = ""):
9
  ARTICLE = f"""[INST] {instruction} [/INST] \\n [TWEETS] {tweets} [/TWEETS]"""
10
  print(ARTICLE)
 
1
  import gradio as gr
2
  import os
3
  from transformers import pipeline
4
+ # hgsec = os.getenv("HF_token")
5
+ # from huggingface_hub import login
6
+ # login(token = hgsec)
7
+ summarizer = pipeline("summarization", model="Sidharthkr/InstructTweetSummarizer")#, use_auth_token = hgsec)#, trust_remote_code=True)
8
  def summarymaker(instruction = "", tweets = ""):
9
  ARTICLE = f"""[INST] {instruction} [/INST] \\n [TWEETS] {tweets} [/TWEETS]"""
10
  print(ARTICLE)