Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def warmer():
|
|
14 |
start_time = time.time()
|
15 |
text_output,image_output = client.predict(
|
16 |
"atleiwarm0001", # str in 'message' Textbox component
|
17 |
-
|
18 |
api_name="/predict"
|
19 |
)
|
20 |
end_time = time.time()
|
@@ -26,7 +26,7 @@ def warmer():
|
|
26 |
start_time = time.time()
|
27 |
text_output_2,image_output_2 = client.predict(
|
28 |
"atleiwarm0002", # str in 'message' Textbox component
|
29 |
-
|
30 |
api_name="/predict"
|
31 |
)
|
32 |
end_time = time.time()
|
@@ -52,7 +52,7 @@ def restart():
|
|
52 |
try:
|
53 |
text_output,image_output = client.predict(
|
54 |
"atleiwarm0003", # str in 'message' Textbox component
|
55 |
-
|
56 |
api_name="/predict"
|
57 |
)
|
58 |
print("RESTARTED")
|
|
|
14 |
start_time = time.time()
|
15 |
text_output,image_output = client.predict(
|
16 |
"atleiwarm0001", # str in 'message' Textbox component
|
17 |
+
None, # str (filepath or URL to image) in 'Upload any Image' Image component
|
18 |
api_name="/predict"
|
19 |
)
|
20 |
end_time = time.time()
|
|
|
26 |
start_time = time.time()
|
27 |
text_output_2,image_output_2 = client.predict(
|
28 |
"atleiwarm0002", # str in 'message' Textbox component
|
29 |
+
None, # str (filepath or URL to image) in 'Upload any Image' Image component
|
30 |
api_name="/predict"
|
31 |
)
|
32 |
end_time = time.time()
|
|
|
52 |
try:
|
53 |
text_output,image_output = client.predict(
|
54 |
"atleiwarm0003", # str in 'message' Textbox component
|
55 |
+
None, # str (filepath or URL to image) in 'Upload any Image' Image component
|
56 |
api_name="/predict"
|
57 |
)
|
58 |
print("RESTARTED")
|