Update app.py
Browse files
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
|