Fix api-example-stream

This commit is contained in:
oobabooga 2023-04-16 12:12:31 -03:00
parent b705b4210c
commit 4e035cc3fb

View File

@ -12,10 +12,10 @@ import string
import websockets import websockets
# Note, Gradio may pick a different fn value as the definition of the Gradio app changes. # Gradio changes this index from time to time. To rediscover it, set VISIBLE = False in
# You can always launch the web UI and inspect the websocket stream using your browser's dev tools # modules/api.py and use the dev tools to inspect the request made after clicking on the
# to determine what value Gradio expects here. # button called "Run" at the bottom of the UI
GRADIO_FN = 29 GRADIO_FN = 34
def random_hash(): def random_hash():