From 1901d238e194a6f534fddfc38ef72e25de7f92fd Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 14 Apr 2023 12:11:47 -0300 Subject: [PATCH] Minor change to API code --- modules/api.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/api.py b/modules/api.py index f18ad4c..2e1f6f4 100644 --- a/modules/api.py +++ b/modules/api.py @@ -5,6 +5,9 @@ import gradio as gr from modules import shared from modules.text_generation import generate_reply +# set this to True to rediscover the fn_index using the browser DevTools +VISIBLE = False + def generate_reply_wrapper(string): generate_params = { @@ -30,9 +33,9 @@ def generate_reply_wrapper(string): def create_apis(): - t1 = gr.Textbox(visible=False) - t2 = gr.Textbox(visible=False) - dummy = gr.Button(visible=False) + t1 = gr.Textbox(visible=VISIBLE) + t2 = gr.Textbox(visible=VISIBLE) + dummy = gr.Button(visible=VISIBLE) input_params = [t1] output_params = [t2] + [shared.gradio[k] for k in ['markdown', 'html']]