From 622c090548819988609bc45f3f98ed9e1c3d25a2 Mon Sep 17 00:00:00 2001 From: Ammar Qammaz Date: Tue, 7 Jan 2025 16:02:59 +0200 Subject: [PATCH] now explicitly resetting state (is this needed?) --- client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.py b/client.py index bc14c6d..75d001a 100755 --- a/client.py +++ b/client.py @@ -95,6 +95,9 @@ for i in range(startAt, len(files)): else: imageFile = handle_file(image_path) + # Reset state + result = client.predict(api_name="/reset_state" ) + # Send the image file path and the prompt to the Gradio app for processing result = client.predict( input_images=[imageFile], # Provide the file path directly