mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-12 10:34:32 +08:00
renamed variables
This commit is contained in:
parent
a811a5cbfc
commit
f63079f5c0
@ -218,7 +218,7 @@ def get_config_file(interface: Interface) -> Dict[str, Any]:
|
||||
for index, component in enumerate(config["input_components"]):
|
||||
if not component["label"]:
|
||||
if index < len(param_names):
|
||||
component["label"] = param_names[i].replace("_", " ")
|
||||
component["label"] = param_names[index].replace("_", " ")
|
||||
else:
|
||||
component["label"] = (
|
||||
f"input {index + 1}"
|
||||
|
Loading…
Reference in New Issue
Block a user