Baskar2005 commited on
Commit
7122957
1 Parent(s): 1b485d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -3,6 +3,7 @@ from PIL import Image
3
  from tensorflow import keras
4
  import numpy as np
5
  import os
 
6
  import logging
7
  from tensorflow.keras.preprocessing import image as keras_image
8
  from huggingface_hub import from_pretrained_keras
@@ -92,7 +93,7 @@ class DiseaseDetectionApp:
92
  """
93
  try:
94
  with ZipFile(filespath,"r") as extract:
95
- directory_path="dataset_image"
96
  extract.extractall(f"{directory_path}")
97
  return f"{directory_path}"
98
 
 
3
  from tensorflow import keras
4
  import numpy as np
5
  import os
6
+ import random
7
  import logging
8
  from tensorflow.keras.preprocessing import image as keras_image
9
  from huggingface_hub import from_pretrained_keras
 
93
  """
94
  try:
95
  with ZipFile(filespath,"r") as extract:
96
+ directory_path = random.randrange(100)
97
  extract.extractall(f"{directory_path}")
98
  return f"{directory_path}"
99