Spaces:
Runtime error
Runtime error
Update waifuc_gui/interface.py
Browse files- waifuc_gui/interface.py +20 -21
waifuc_gui/interface.py
CHANGED
@@ -213,32 +213,31 @@ class Interface:
|
|
213 |
def update_language(language):
|
214 |
self.config_manager.set_config("language", language)
|
215 |
return {
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
"log_download_file": log_download_file.update(label=self.get_text("download_log"))
|
236 |
}
|
237 |
language_dropdown.change(
|
238 |
fn=update_language,
|
239 |
inputs=language_dropdown,
|
240 |
outputs=[
|
241 |
-
|
242 |
dataset_name_input, exporter_dropdown, start_btn, status,
|
243 |
output_file, pixiv_token_input, output_dir_input, num_items_input,
|
244 |
resize_size_input, config_export_btn, config_import_file,
|
|
|
213 |
def update_language(language):
|
214 |
self.config_manager.set_config("language", language)
|
215 |
return {
|
216 |
+
language_dropdown: gr.Dropdown(label=self.get_text("language")),
|
217 |
+
source_dropdown: gr.Dropdown(label=self.get_text("select_source")),
|
218 |
+
action_checkboxes: gr.CheckboxGroup(label=self.get_text("select_actions")),
|
219 |
+
dataset_name_input: gr.Textbox(label=self.get_text("dataset_name")),
|
220 |
+
exporter_dropdown: gr.Dropdown(label=self.get_text("select_exporter")),
|
221 |
+
start_btn: gr.Button(self.get_text("start_collection")),
|
222 |
+
status: gr.Textbox(label=self.get_text("status")),
|
223 |
+
output_file: gr.File(label=self.get_text("download_data")),
|
224 |
+
pixiv_token_input: gr.Textbox(label=self.get_text("pixiv_token")),
|
225 |
+
output_dir_input: gr.Textbox(label=self.get_text("output_dir")),
|
226 |
+
num_items_input: gr.Number(label=self.get_text("num_items")),
|
227 |
+
resize_size_input: gr.Number(label=self.get_text("resize_size")),
|
228 |
+
config_export_btn: gr.Button(self.get_text("export_config")),
|
229 |
+
config_import_file: gr.File(label=self.get_text("import_config")),
|
230 |
+
save_config_btn: gr.Button(self.get_text("save_config")),
|
231 |
+
config_status: gr.Textbox(label=self.get_text("config_status")),
|
232 |
+
log_output: gr.Textbox(label=self.get_text("view_logs")),
|
233 |
+
log_download_btn: gr.Button(self.get_text("download_log")),
|
234 |
+
log_download_file: gr.File(label=self.get_text("download_log"))
|
|
|
235 |
}
|
236 |
language_dropdown.change(
|
237 |
fn=update_language,
|
238 |
inputs=language_dropdown,
|
239 |
outputs=[
|
240 |
+
language_dropdown, source_dropdown, action_checkboxes,
|
241 |
dataset_name_input, exporter_dropdown, start_btn, status,
|
242 |
output_file, pixiv_token_input, output_dir_input, num_items_input,
|
243 |
resize_size_input, config_export_btn, config_import_file,
|