Spaces:
Sleeping
Sleeping
with gr.Blocks(js=JS, css=CSS) as demo:
Browse files
app.py
CHANGED
@@ -811,20 +811,19 @@ def next_slide():
|
|
811 |
def get_video_id():
|
812 |
return VIDEO_ID
|
813 |
|
814 |
-
|
815 |
-
<
|
816 |
-
|
817 |
-
|
|
|
818 |
svg.markmap {{
|
819 |
width: 100%;
|
820 |
height: 100vh;
|
821 |
}}
|
822 |
-
</style>
|
823 |
-
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
|
824 |
"""
|
825 |
|
826 |
|
827 |
-
with gr.Blocks(
|
828 |
with gr.Row():
|
829 |
with gr.Column():
|
830 |
file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
|
@@ -836,7 +835,7 @@ with gr.Blocks(head=HEAD) as demo:
|
|
836 |
send_button = gr.Button("Send")
|
837 |
|
838 |
with gr.Column():
|
839 |
-
with gr.Tab("
|
840 |
transcript_html = gr.HTML(label="YouTube Transcript and Video")
|
841 |
with gr.Tab("ζε½±η"):
|
842 |
slide_image = gr.Image()
|
@@ -846,11 +845,11 @@ with gr.Blocks(head=HEAD) as demo:
|
|
846 |
next_button = gr.Button("Next")
|
847 |
prev_button.click(fn=prev_slide, inputs=[], outputs=[slide_image, slide_text])
|
848 |
next_button.click(fn=next_slide, inputs=[], outputs=[slide_image, slide_text])
|
849 |
-
with gr.Tab("
|
850 |
df_string_output = gr.Textbox(lines=40, label="Data Text")
|
851 |
-
with gr.Tab("
|
852 |
df_summarise = gr.Textbox(container=True, show_copy_button=True, lines=40)
|
853 |
-
with gr.Tab("
|
854 |
gr.Markdown("## εΈΈη¨ει‘")
|
855 |
btn_1 = gr.Button()
|
856 |
btn_2 = gr.Button()
|
|
|
811 |
def get_video_id():
|
812 |
return VIDEO_ID
|
813 |
|
814 |
+
JS = """
|
815 |
+
<script src="https://cdn.jsdelivr.net/npm/markmap-[email protected]"></script>
|
816 |
+
"""
|
817 |
+
|
818 |
+
CSS = """
|
819 |
svg.markmap {{
|
820 |
width: 100%;
|
821 |
height: 100vh;
|
822 |
}}
|
|
|
|
|
823 |
"""
|
824 |
|
825 |
|
826 |
+
with gr.Blocks(js=JS, css=CSS) as demo:
|
827 |
with gr.Row():
|
828 |
with gr.Column():
|
829 |
file_upload = gr.File(label="Upload your CSV or Word file", visible=False)
|
|
|
835 |
send_button = gr.Button("Send")
|
836 |
|
837 |
with gr.Column():
|
838 |
+
with gr.Tab("εζ"):
|
839 |
transcript_html = gr.HTML(label="YouTube Transcript and Video")
|
840 |
with gr.Tab("ζε½±η"):
|
841 |
slide_image = gr.Image()
|
|
|
845 |
next_button = gr.Button("Next")
|
846 |
prev_button.click(fn=prev_slide, inputs=[], outputs=[slide_image, slide_text])
|
847 |
next_button.click(fn=next_slide, inputs=[], outputs=[slide_image, slide_text])
|
848 |
+
with gr.Tab("ζ¬ζ"):
|
849 |
df_string_output = gr.Textbox(lines=40, label="Data Text")
|
850 |
+
with gr.Tab("ιι»"):
|
851 |
df_summarise = gr.Textbox(container=True, show_copy_button=True, lines=40)
|
852 |
+
with gr.Tab("ει‘"):
|
853 |
gr.Markdown("## εΈΈη¨ει‘")
|
854 |
btn_1 = gr.Button()
|
855 |
btn_2 = gr.Button()
|