echung682 commited on
Commit
5801426
·
verified ·
1 Parent(s): 8f10942

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -88,6 +88,7 @@ def emotionAnalysis(message, face):
88
  data = displayResults()
89
  file_name = "unfinishedPLT.png"
90
  data.savefig(file_name)
 
91
  dL = gr.DownloadButton(label="Download Emotion Timeline", value=file_name, visible=False)
92
  # Return both the text result and the updated plot
93
  return f"Text: {text_emotion} | Face: {face_emotion}", data, dL
 
88
  data = displayResults()
89
  file_name = "unfinishedPLT.png"
90
  data.savefig(file_name)
91
+ temp_files.append(file_name)
92
  dL = gr.DownloadButton(label="Download Emotion Timeline", value=file_name, visible=False)
93
  # Return both the text result and the updated plot
94
  return f"Text: {text_emotion} | Face: {face_emotion}", data, dL