Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -478,7 +478,7 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
|
|
478 |
with gr.Row(visible=False) as online_gen_row:
|
479 |
# OpenAI Key for generator
|
480 |
value = ""
|
481 |
-
if((curr_openai_key != "")
|
482 |
value = curr_openai_key
|
483 |
openai_key = gr.Textbox(value=value, lines=1, label="OpenAI API Key",
|
484 |
placeholder="starts with sk-",
|
|
|
478 |
with gr.Row(visible=False) as online_gen_row:
|
479 |
# OpenAI Key for generator
|
480 |
value = ""
|
481 |
+
if((curr_openai_key != "") and (curr_openai_key != "state")):
|
482 |
value = curr_openai_key
|
483 |
openai_key = gr.Textbox(value=value, lines=1, label="OpenAI API Key",
|
484 |
placeholder="starts with sk-",
|