Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def get_text_after_colon(input_text):
|
|
21 |
# Return the original text if ":" is not found
|
22 |
return input_text
|
23 |
|
24 |
-
def infer(image_input):
|
25 |
|
26 |
clipi_result = clipi_client.predict(
|
27 |
image_input, # str (filepath or URL to image) in 'parameter_3' Image component
|
@@ -29,7 +29,7 @@ def infer(image_input):
|
|
29 |
4, # int | float (numeric value between 2 and 24) in 'best mode max flavors' Slider component
|
30 |
api_name="/clipi2"
|
31 |
)
|
32 |
-
print(clipi_result
|
33 |
|
34 |
|
35 |
llama_q = f"""
|
|
|
21 |
# Return the original text if ":" is not found
|
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
|
|
|
29 |
4, # int | float (numeric value between 2 and 24) in 'best mode max flavors' Slider component
|
30 |
api_name="/clipi2"
|
31 |
)
|
32 |
+
print(clipi_result)
|
33 |
|
34 |
|
35 |
llama_q = f"""
|