now explicitly resetting state (is this needed?)

This commit is contained in:
Ammar Qammaz 2025-01-07 16:02:59 +02:00
parent c59bfe3164
commit 622c090548

View File

@ -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