Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,15 @@ def warmer():
|
|
16 |
"", # str (filepath or URL to image) in 'Upload any Image' Image component
|
17 |
api_name="/predict"
|
18 |
)
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
print("ALIVE")
|
21 |
-
print("
|
|
|
22 |
else:
|
23 |
print("DISCONNECTED")
|
24 |
time.sleep(300)
|
|
|
16 |
"", # str (filepath or URL to image) in 'Upload any Image' Image component
|
17 |
api_name="/predict"
|
18 |
)
|
19 |
+
text_output_2,image_output_2 = client.predict(
|
20 |
+
"atleiwarm0001", # str in 'message' Textbox component
|
21 |
+
"", # str (filepath or URL to image) in 'Upload any Image' Image component
|
22 |
+
api_name="/predict"
|
23 |
+
)
|
24 |
+
if (text_output != None) and (text_output_2 != None):
|
25 |
print("ALIVE")
|
26 |
+
print("pygmalion response : ", text_output)
|
27 |
+
print("qna response : ", text_output_2)
|
28 |
else:
|
29 |
print("DISCONNECTED")
|
30 |
time.sleep(300)
|