Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -350,7 +350,7 @@ messages = [
|
|
| 350 |
def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
| 351 |
if Textbox3 == code:
|
| 352 |
imageData = None
|
| 353 |
-
if Images
|
| 354 |
output = []
|
| 355 |
headers = {
|
| 356 |
"Authorization": f"Bearer {auth2}"
|
|
@@ -430,7 +430,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
| 430 |
|
| 431 |
return output
|
| 432 |
|
| 433 |
-
|
| 434 |
output = []
|
| 435 |
|
| 436 |
Textbox2 = Textbox2.replace("[", "").replace("]", "").replace("'", "")
|
|
|
|
| 350 |
def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
| 351 |
if Textbox3 == code:
|
| 352 |
imageData = None
|
| 353 |
+
if Images != "None":
|
| 354 |
output = []
|
| 355 |
headers = {
|
| 356 |
"Authorization": f"Bearer {auth2}"
|
|
|
|
| 430 |
|
| 431 |
return output
|
| 432 |
|
| 433 |
+
elif Images == "None":
|
| 434 |
output = []
|
| 435 |
|
| 436 |
Textbox2 = Textbox2.replace("[", "").replace("]", "").replace("'", "")
|