Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ def analyze_financial_news(): 
     | 
|
| 5 | 
         
             
                access = "hf_"
         
     | 
| 6 | 
         
             
                token = "hhbFNpjKohezoexWMlyPUpvJQLWlaFhJaa"
         
     | 
| 7 | 
         | 
| 8 | 
         
            -
                # Load the text classification model pipeline
         
     | 
| 9 | 
         
             
                classification = pipeline("text-classification", model="nickmuchi/finbert-tone-finetuned-finance-topic-classification", token=access+token)
         
     | 
| 10 | 
         
             
                sentiment_analysis = pipeline("text-classification", model="JoanParanoid/FinNews_SentimentAnalysis_v2")
         
     | 
| 11 | 
         | 
| 
         | 
|
| 5 | 
         
             
                access = "hf_"
         
     | 
| 6 | 
         
             
                token = "hhbFNpjKohezoexWMlyPUpvJQLWlaFhJaa"
         
     | 
| 7 | 
         | 
| 8 | 
         
            +
                # Load the text classification model and finetuned model pipeline
         
     | 
| 9 | 
         
             
                classification = pipeline("text-classification", model="nickmuchi/finbert-tone-finetuned-finance-topic-classification", token=access+token)
         
     | 
| 10 | 
         
             
                sentiment_analysis = pipeline("text-classification", model="JoanParanoid/FinNews_SentimentAnalysis_v2")
         
     | 
| 11 | 
         |