From 4e035cc3fb45e5e5464710b9f060598f6064b346 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 16 Apr 2023 12:12:31 -0300 Subject: [PATCH] Fix api-example-stream --- api-example-stream.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api-example-stream.py b/api-example-stream.py index dc13b384..7a87114b 100644 --- a/api-example-stream.py +++ b/api-example-stream.py @@ -12,10 +12,10 @@ import string import websockets -# Note, Gradio may pick a different fn value as the definition of the Gradio app changes. -# You can always launch the web UI and inspect the websocket stream using your browser's dev tools -# to determine what value Gradio expects here. -GRADIO_FN = 29 +# Gradio changes this index from time to time. To rediscover it, set VISIBLE = False in +# modules/api.py and use the dev tools to inspect the request made after clicking on the +# button called "Run" at the bottom of the UI +GRADIO_FN = 34 def random_hash():