gradio: 提示
Browse files
app.py
CHANGED
@@ -345,27 +345,31 @@ if __name__ == '__main__':
|
|
345 |
)
|
346 |
|
347 |
with gr.Row():
|
|
|
|
|
|
|
|
|
348 |
column_id = gr.Textbox(
|
349 |
value="",
|
350 |
-
|
351 |
label="column_id",
|
352 |
visible=False
|
353 |
)
|
354 |
column_prompt = gr.Textbox(
|
355 |
value="",
|
356 |
-
|
357 |
label="column_prompt",
|
358 |
visible=False
|
359 |
)
|
360 |
column_content = gr.Textbox(
|
361 |
value="content",
|
362 |
-
|
363 |
label="column_content",
|
364 |
visible=False
|
365 |
)
|
366 |
column_image = gr.Textbox(
|
367 |
value="",
|
368 |
-
|
369 |
label="column_image",
|
370 |
visible=False
|
371 |
)
|
|
|
345 |
)
|
346 |
|
347 |
with gr.Row():
|
348 |
+
# 字段映射说明文本,带示例链接
|
349 |
+
with gr.Column():
|
350 |
+
gr.Markdown("Field Matching: Please input the column name of dataset in the input boxes below ( [examples](https://github.com/MigoXLab/dingo/tree/main/examples) )")
|
351 |
+
|
352 |
column_id = gr.Textbox(
|
353 |
value="",
|
354 |
+
placeholder="Column name of id in the input file. If exists multiple levels, use '.' separate",
|
355 |
label="column_id",
|
356 |
visible=False
|
357 |
)
|
358 |
column_prompt = gr.Textbox(
|
359 |
value="",
|
360 |
+
placeholder="Column name of prompt in the input file. If exists multiple levels, use '.' separate",
|
361 |
label="column_prompt",
|
362 |
visible=False
|
363 |
)
|
364 |
column_content = gr.Textbox(
|
365 |
value="content",
|
366 |
+
placeholder="Column name of content in the input file. If exists multiple levels, use '.' separate",
|
367 |
label="column_content",
|
368 |
visible=False
|
369 |
)
|
370 |
column_image = gr.Textbox(
|
371 |
value="",
|
372 |
+
placeholder="Column name of image in the input file. If exists multiple levels, use '.' separate",
|
373 |
label="column_image",
|
374 |
visible=False
|
375 |
)
|