Spaces:
Paused
Paused
Added some status info messages
Browse files
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"
|