Jean-Baptiste commited on
Commit
0a3d2f1
1 Parent(s): eee8e74

fixing gradio start issue

Browse files
Files changed (3) hide show
  1. README.md +1 -0
  2. app.py +4 -0
  3. requirements.txt +1 -1
README.md CHANGED
@@ -8,6 +8,7 @@ sdk_version: 3.8.2
8
  app_file: app.py
9
  pinned: false
10
  license: mit
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
+ python_version: 3.9
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -3,10 +3,14 @@ import os
3
 
4
  from useful_functions import *
5
  import useful_functions
 
 
 
6
 
7
  f_load_cancer_classifier()
8
  f_load_cnn_model()
9
 
 
10
  HF_TOKEN = os.getenv('HF_TOKEN')
11
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "mole-dataset", private=True)
12
 
 
3
 
4
  from useful_functions import *
5
  import useful_functions
6
+ from dotenv import load_dotenv
7
+
8
+ load_dotenv()
9
 
10
  f_load_cancer_classifier()
11
  f_load_cnn_model()
12
 
13
+
14
  HF_TOKEN = os.getenv('HF_TOKEN')
15
  hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "mole-dataset", private=True)
16
 
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- numpy
2
  pandas==1.5.1
3
  torch==1.12.1
4
  scikit-learn==1.1.3
 
1
+ numpy==1.23
2
  pandas==1.5.1
3
  torch==1.12.1
4
  scikit-learn==1.1.3