Spaces:
Sleeping
Sleeping
Update pdf2zh/gui.py
Browse files- pdf2zh/gui.py +1 -1
pdf2zh/gui.py
CHANGED
|
@@ -366,7 +366,7 @@ with gr.Blocks(
|
|
| 366 |
def on_select_service(service, evt: gr.EventData):
|
| 367 |
if service_map[service][1]:
|
| 368 |
apikey_content = gr.update(
|
| 369 |
-
visible=
|
| 370 |
)
|
| 371 |
else:
|
| 372 |
apikey_content = gr.update(visible=False)
|
|
|
|
| 366 |
def on_select_service(service, evt: gr.EventData):
|
| 367 |
if service_map[service][1]:
|
| 368 |
apikey_content = gr.update(
|
| 369 |
+
visible=False, value=os.environ.get(service_map[service][1])
|
| 370 |
)
|
| 371 |
else:
|
| 372 |
apikey_content = gr.update(visible=False)
|