aokitools commited on
Commit ·
fe9f23b
1
Parent(s): e94b0ef
commit
Browse files
app.py
CHANGED
|
@@ -1026,17 +1026,6 @@ def f_tsne(e_text1, e_checkbox1, e_radio1, e_radio2, e_checkbox2):
|
|
| 1026 |
with gr.Blocks() as sample01:
|
| 1027 |
gr.Markdown("aokitools")
|
| 1028 |
|
| 1029 |
-
with gr.Tab("IP確認"):
|
| 1030 |
-
e_text1 = gr.TextArea(show_label=True, label="TEXT")
|
| 1031 |
-
|
| 1032 |
-
with gr.Row():
|
| 1033 |
-
e_button1 = gr.Button("確認")
|
| 1034 |
-
e_button1.click(f_ipcheck, inputs=[], outputs=[e_text1])
|
| 1035 |
-
pass
|
| 1036 |
-
|
| 1037 |
-
sample01.load(f_ipcheck, inputs=[], outputs=[e_text1])
|
| 1038 |
-
pass
|
| 1039 |
-
|
| 1040 |
with gr.Tab("パスワード生成"):
|
| 1041 |
e_number1 = gr.Number(value=8, minimum=1, maximum=1024, label="桁数")
|
| 1042 |
|
|
@@ -1055,6 +1044,17 @@ with gr.Blocks() as sample01:
|
|
| 1055 |
pass
|
| 1056 |
pass
|
| 1057 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1058 |
with gr.Tab("hash"):
|
| 1059 |
e_text1 = gr.TextArea(show_label=True, label="TEXT")
|
| 1060 |
|
|
@@ -1147,7 +1147,7 @@ with gr.Blocks() as sample01:
|
|
| 1147 |
e_button2 = gr.Button("翻訳")
|
| 1148 |
|
| 1149 |
e_button1.click(f_formattext_en, inputs=[e_text1], outputs=[e_text1, e_text2])
|
| 1150 |
-
e_button2.click(fn=None, inputs=[e_text2],
|
| 1151 |
pass
|
| 1152 |
|
| 1153 |
with gr.Tab("並べ替え/重複排除"):
|
|
|
|
| 1026 |
with gr.Blocks() as sample01:
|
| 1027 |
gr.Markdown("aokitools")
|
| 1028 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1029 |
with gr.Tab("パスワード生成"):
|
| 1030 |
e_number1 = gr.Number(value=8, minimum=1, maximum=1024, label="桁数")
|
| 1031 |
|
|
|
|
| 1044 |
pass
|
| 1045 |
pass
|
| 1046 |
|
| 1047 |
+
with gr.Tab("IP確認"):
|
| 1048 |
+
e_text1 = gr.TextArea(show_label=True, label="TEXT")
|
| 1049 |
+
|
| 1050 |
+
with gr.Row():
|
| 1051 |
+
e_button1 = gr.Button("確認")
|
| 1052 |
+
e_button1.click(f_ipcheck, inputs=[], outputs=[e_text1])
|
| 1053 |
+
pass
|
| 1054 |
+
|
| 1055 |
+
sample01.load(f_ipcheck, inputs=[], outputs=[e_text1])
|
| 1056 |
+
pass
|
| 1057 |
+
|
| 1058 |
with gr.Tab("hash"):
|
| 1059 |
e_text1 = gr.TextArea(show_label=True, label="TEXT")
|
| 1060 |
|
|
|
|
| 1147 |
e_button2 = gr.Button("翻訳")
|
| 1148 |
|
| 1149 |
e_button1.click(f_formattext_en, inputs=[e_text1], outputs=[e_text1, e_text2])
|
| 1150 |
+
e_button2.click(fn=None, inputs=[e_text2], js="(e_text2) => {window.open(e_text2, '_blank', 'noreferrer')}")
|
| 1151 |
pass
|
| 1152 |
|
| 1153 |
with gr.Tab("並べ替え/重複排除"):
|