Corrected function call
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ LINE_WIDTH = 2
|
|
28 |
logger.info(f"Gradio version: {gr.__version__}")
|
29 |
|
30 |
# Define the inference function
|
31 |
-
def predict_image(image,
|
32 |
|
33 |
# Resize the image to the new size
|
34 |
#image = image.resize((image.size[0] * 2, image.size[1] * 2))
|
|
|
28 |
logger.info(f"Gradio version: {gr.__version__}")
|
29 |
|
30 |
# Define the inference function
|
31 |
+
def predict_image(image, text_prompt, box_threshold, text_threshold):
|
32 |
|
33 |
# Resize the image to the new size
|
34 |
#image = image.resize((image.size[0] * 2, image.size[1] * 2))
|