rajistics commited on
Commit
5956cea
1 Parent(s): 84b3623

force latest gradio version

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification
2
  import gradio as gr
3
  import os
@@ -23,8 +24,7 @@ def summarize_text(text):
23
  return stext
24
 
25
  ##Fiscal Sentiment
26
- #fin_model = pipeline("text-classification", model="demo-org/auditor_review_model", \
27
- # tokenizer="demo-org/auditor_review_model",use_auth_token=auth_token)
28
  fin_model = pipeline("text-classification")
29
  def text_to_sentiment(text):
30
  sentiment = fin_model(text)[0]["label"]
 
1
+ os.system("pip install gradio==3.0.18")
2
  from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification
3
  import gradio as gr
4
  import os
 
24
  return stext
25
 
26
  ##Fiscal Sentiment
27
+ #fin_model = pipeline("text-classification", model="demo-org/auditor_review_model", \n# tokenizer="demo-org/auditor_review_model",use_auth_token=auth_token)
 
28
  fin_model = pipeline("text-classification")
29
  def text_to_sentiment(text):
30
  sentiment = fin_model(text)[0]["label"]