echung682 commited on
Commit
8a3807a
·
verified ·
1 Parent(s): 2ff1a2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -4,9 +4,6 @@ from transformers import (
4
  pipeline, # For creating inference pipeline
5
 
6
  )
7
- from colorama import Fore, Style # For colored console output
8
- import pandas as pd # For data handling
9
- import time
10
  from datetime import datetime
11
  import matplotlib.pyplot as plt
12
  import gradio as gr
@@ -23,7 +20,6 @@ tokenizer = AutoTokenizer.from_pretrained("borisn70/bert-43-multilabel-emotion-d
23
  pipe = pipeline(task="text-classification", model=emotionDetectModel, tokenizer=tokenizer)
24
 
25
  face_emotion_detector = FER()
26
- cap = cv2.VideoCapture(0)
27
 
28
  localFormat = "%Y-%m-%d %H:%M:%S" #this is how will print the timestamp: year-month-day hour-minutes-seconds (army time)
29
  #currTime = datetime.now().astimezone().strftime(localFormat) this returns the time in the localFormat
 
4
  pipeline, # For creating inference pipeline
5
 
6
  )
 
 
 
7
  from datetime import datetime
8
  import matplotlib.pyplot as plt
9
  import gradio as gr
 
20
  pipe = pipeline(task="text-classification", model=emotionDetectModel, tokenizer=tokenizer)
21
 
22
  face_emotion_detector = FER()
 
23
 
24
  localFormat = "%Y-%m-%d %H:%M:%S" #this is how will print the timestamp: year-month-day hour-minutes-seconds (army time)
25
  #currTime = datetime.now().astimezone().strftime(localFormat) this returns the time in the localFormat