Update funcs.py
Browse files
    	
        funcs.py
    CHANGED
    
    | 
         @@ -24,6 +24,8 @@ classifier = pipeline("zero-shot-classification", model ='facebook/bart-large-mn 
     | 
|
| 24 | 
         | 
| 25 | 
         
             
            AI71_API_KEY = os.getenv('AI71_API_KEY')
         
     | 
| 26 | 
         
             
            print(AI71_API_KEY)
         
     | 
| 
         | 
|
| 
         | 
|
| 27 | 
         | 
| 28 | 
         
             
            # Detect emotions from patient dialogues
         
     | 
| 29 | 
         
             
            def detect_emotions(text):
         
     | 
| 
         | 
|
| 24 | 
         | 
| 25 | 
         
             
            AI71_API_KEY = os.getenv('AI71_API_KEY')
         
     | 
| 26 | 
         
             
            print(AI71_API_KEY)
         
     | 
| 27 | 
         
            +
            huggingface_token = os.getenv('hf_token')
         
     | 
| 28 | 
         
            +
            print("hf-token:",huggingface_token)
         
     | 
| 29 | 
         | 
| 30 | 
         
             
            # Detect emotions from patient dialogues
         
     | 
| 31 | 
         
             
            def detect_emotions(text):
         
     |