Reverent commited on
Commit
d26b817
·
1 Parent(s): 55e7626

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- if text_output != None:
 
 
 
 
 
20
  print("ALIVE")
21
- print("Response : ", text_output)
 
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)