Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -186,7 +186,6 @@ messages = [
|
|
| 186 |
|
| 187 |
def classify(platform,UserInput, Image, Textbox2, Textbox3):
|
| 188 |
if Textbox3 == code:
|
| 189 |
-
print("Image: ", Image)
|
| 190 |
if Image is not None:
|
| 191 |
output = []
|
| 192 |
headers = {
|
|
@@ -197,6 +196,8 @@ def classify(platform,UserInput, Image, Textbox2, Textbox3):
|
|
| 197 |
print(get_image.content)
|
| 198 |
elif platform == "web":
|
| 199 |
print("WEB")
|
|
|
|
|
|
|
| 200 |
image_data = np.array(Image)
|
| 201 |
image_data = cv.resize(image_data, (224, 224))
|
| 202 |
image_array = np.asarray(image_data)
|
|
|
|
| 186 |
|
| 187 |
def classify(platform,UserInput, Image, Textbox2, Textbox3):
|
| 188 |
if Textbox3 == code:
|
|
|
|
| 189 |
if Image is not None:
|
| 190 |
output = []
|
| 191 |
headers = {
|
|
|
|
| 196 |
print(get_image.content)
|
| 197 |
elif platform == "web":
|
| 198 |
print("WEB")
|
| 199 |
+
else:
|
| 200 |
+
pass
|
| 201 |
image_data = np.array(Image)
|
| 202 |
image_data = cv.resize(image_data, (224, 224))
|
| 203 |
image_array = np.asarray(image_data)
|