fffiloni commited on
Commit
b84496f
1 Parent(s): 3ff63c5

Added some status info messages

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ def get_text_after_colon(input_text):
22
  return input_text
23
 
24
  def infer(image_input, audience):
25
-
26
  clipi_result = clipi_client.predict(
27
  image_input, # str (filepath or URL to image) in 'parameter_3' Image component
28
  "best", # str in 'Select mode' Radio component
@@ -38,7 +38,7 @@ def infer(image_input, audience):
38
  '{clipi_result[0]}'
39
 
40
  """
41
-
42
  result = client.predict(
43
  llama_q, # str in 'Message' Textbox component
44
  api_name="/predict"
 
22
  return input_text
23
 
24
  def infer(image_input, audience):
25
+ gr.Info('Calling CLIP Interrogator ...')
26
  clipi_result = clipi_client.predict(
27
  image_input, # str (filepath or URL to image) in 'parameter_3' Image component
28
  "best", # str in 'Select mode' Radio component
 
38
  '{clipi_result[0]}'
39
 
40
  """
41
+ gr.Info('Calling Llama2 ...')
42
  result = client.predict(
43
  llama_q, # str in 'Message' Textbox component
44
  api_name="/predict"