Siraja704 commited on
Commit
a20be1c
·
1 Parent(s): a56e546

Fix Gradio compatibility and update dependencies

Browse files

- Remove deprecated @gr .utils.require_minimum_gradio_version decorator
- Update Gradio version to 5.0.0+ for better compatibility
- Update requirements.txt with compatible package versions
- Add .gitignore to exclude virtual environment and cache files
- Fix import compatibility issues with newer Gradio versions

Files changed (3) hide show
  1. .gitignore +25 -0
  2. app.py +0 -1
  3. requirements.txt +1 -1
.gitignore ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Virtual environment
2
+ derma_env/
3
+ venv/
4
+ env/
5
+ .env
6
+
7
+ # Python cache files
8
+ __pycache__/
9
+ *.pyc
10
+ *.pyo
11
+ *.pyd
12
+ .Python
13
+
14
+ # IDE files
15
+ .vscode/
16
+ .idea/
17
+ *.swp
18
+ *.swo
19
+
20
+ # OS files
21
+ .DS_Store
22
+ Thumbs.db
23
+
24
+ # Model cache
25
+ .cache/
app.py CHANGED
@@ -24,7 +24,6 @@ CLASS_DESCRIPTIONS = {
24
  'Tinea Ringworm Candidiasis': 'Fungal skin infections causing circular, scaly patches'
25
  }
26
 
27
- @gr.utils.require_minimum_gradio_version("3.0.0")
28
  class DermaAIModel:
29
  def __init__(self):
30
  self.model = None
 
24
  'Tinea Ringworm Candidiasis': 'Fungal skin infections causing circular, scaly patches'
25
  }
26
 
 
27
  class DermaAIModel:
28
  def __init__(self):
29
  self.model = None
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.0.0
2
  tensorflow>=2.13.0
3
  huggingface_hub>=0.20.0
4
  pillow>=9.0.0
 
1
+ gradio>=5.0.0
2
  tensorflow>=2.13.0
3
  huggingface_hub>=0.20.0
4
  pillow>=9.0.0