Lakssssshya commited on
Commit
32ffe5a
·
verified ·
1 Parent(s): 17bc261

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -2,6 +2,14 @@
2
  Complete Gradio App for Emotion Detection
3
  Deploy to Hugging Face Spaces
4
  """
 
 
 
 
 
 
 
 
5
 
6
  import gradio as gr
7
  import torch
 
2
  Complete Gradio App for Emotion Detection
3
  Deploy to Hugging Face Spaces
4
  """
5
+ import os
6
+
7
+ # --- Runtime repair to fix Hugging Face dependency override ---
8
+ os.system(
9
+ "pip install -U gradio==4.44.0 huggingface_hub==0.20.3 transformers==4.39.3 --no-cache-dir > /dev/null"
10
+ )
11
+ # ---------------------------------------------------------------------
12
+
13
 
14
  import gradio as gr
15
  import torch