MerlenMaven commited on
Commit
9961512
·
verified ·
1 Parent(s): 74da4ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,6 +24,7 @@ from groq import Groq
24
  import requests
25
  from threading import Thread
26
  import concurrent.futures
 
27
 
28
  # Set the environment variables before importing libraries
29
  os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE' # Allow duplicate OpenMP libraries
@@ -272,7 +273,7 @@ if __name__ == "__main__":
272
  state = gr.State({"result": "", "average_pain": "", "graph_filename": ""})
273
 
274
  # Clear button resets the UI, including the file input, chatbot input, and outputs
275
- clear_button.click(lambda: (None, None, "", ""), outputs=[pain_result, average_pain, graph_output, chatbot_output, file_input])
276
 
277
  # File input only triggers processing when the submit button is clicked
278
  submit_button.click(
 
24
  import requests
25
  from threading import Thread
26
  import concurrent.futures
27
+ from fer import FER
28
 
29
  # Set the environment variables before importing libraries
30
  os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE' # Allow duplicate OpenMP libraries
 
273
  state = gr.State({"result": "", "average_pain": "", "graph_filename": ""})
274
 
275
  # Clear button resets the UI, including the file input, chatbot input, and outputs
276
+ clear_button.click(lambda: (None, None, "", "",""), outputs=[pain_result, average_pain, graph_output, chatbot_output, file_input])
277
 
278
  # File input only triggers processing when the submit button is clicked
279
  submit_button.click(