Spaces:
Running
Running
Gereksiz kopyala butonu kaldırıldı, yerleşik kopyalama sistemi aktif
Browse files
ui.py
CHANGED
@@ -55,7 +55,6 @@ with gr.Blocks() as demo:
|
|
55 |
|
56 |
with gr.Row():
|
57 |
text_output = gr.Textbox(label="Giriş Metni")
|
58 |
-
copy_btn = gr.Button("Özeti Kopyala")
|
59 |
copy_status = gr.Textbox(visible=False)
|
60 |
summary_output = gr.Textbox(label="AI Özeti", lines=10, show_copy_button=True)
|
61 |
summary_file = gr.File(label="Özeti İndir", interactive=True)
|
@@ -65,12 +64,7 @@ with gr.Blocks() as demo:
|
|
65 |
inputs=[pdf_input, image_input, manual_input, mode_selector, model_selector],
|
66 |
outputs=[text_output, summary_output, summary_file]
|
67 |
)
|
68 |
-
|
69 |
-
fn=lambda summary: (summary, "✔️ Özet panoya kopyalandı."),
|
70 |
-
inputs=[summary_output],
|
71 |
-
outputs=[summary_output, copy_status],
|
72 |
-
js="navigator.clipboard.writeText(arguments[0]);"
|
73 |
-
)
|
74 |
|
75 |
|
76 |
if __name__ == "__main__":
|
|
|
55 |
|
56 |
with gr.Row():
|
57 |
text_output = gr.Textbox(label="Giriş Metni")
|
|
|
58 |
copy_status = gr.Textbox(visible=False)
|
59 |
summary_output = gr.Textbox(label="AI Özeti", lines=10, show_copy_button=True)
|
60 |
summary_file = gr.File(label="Özeti İndir", interactive=True)
|
|
|
64 |
inputs=[pdf_input, image_input, manual_input, mode_selector, model_selector],
|
65 |
outputs=[text_output, summary_output, summary_file]
|
66 |
)
|
67 |
+
|
|
|
|
|
|
|
|
|
|
|
68 |
|
69 |
|
70 |
if __name__ == "__main__":
|