Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,14 @@ with gr.Blocks() as iface:
|
|
116 |
gr.Textbox(label="Personality Disorders Explanation", visible=False)
|
117 |
output_components.extend([tab] + [component for component in tab.children])
|
118 |
|
119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
gr.Markdown("### Example Videos")
|
121 |
with gr.Row():
|
122 |
with gr.Column(scale=1):
|
@@ -140,15 +147,6 @@ with gr.Blocks() as iface:
|
|
140 |
example_video_3 = gr.Video(example_video_3_path, label="Example 3", visible=False)
|
141 |
use_example_button_3 = gr.Button("Load Example 3")
|
142 |
|
143 |
-
with open('description.txt', 'r') as file:
|
144 |
-
description_txt = file.read()
|
145 |
-
with gr.Tab(label=f'Description', visible=True):
|
146 |
-
gr.Markdown(description_txt)
|
147 |
-
gr.HTML("<div style='height: 20px;'></div>")
|
148 |
-
gr.Image(value="appendix/AI Personality Detection flow - 1.png", label='Flowchart 1', width=1000)
|
149 |
-
gr.Image(value="appendix/AI Personality Detection flow - 2.png", label='Flowchart 2', width=1000)
|
150 |
-
|
151 |
-
|
152 |
analyze_button.click(
|
153 |
fn=clear_outputs,
|
154 |
inputs=[],
|
|
|
116 |
gr.Textbox(label="Personality Disorders Explanation", visible=False)
|
117 |
output_components.extend([tab] + [component for component in tab.children])
|
118 |
|
119 |
+
with open('description.txt', 'r') as file:
|
120 |
+
description_txt = file.read()
|
121 |
+
with gr.Tab(label=f'Description', visible=True):
|
122 |
+
gr.Markdown(description_txt)
|
123 |
+
gr.HTML("<div style='height: 20px;'></div>")
|
124 |
+
gr.Image(value="appendix/AI Personality Detection flow - 1.png", label='Flowchart 1', width=1000)
|
125 |
+
gr.Image(value="appendix/AI Personality Detection flow - 2.png", label='Flowchart 2', width=1000)
|
126 |
+
|
127 |
gr.Markdown("### Example Videos")
|
128 |
with gr.Row():
|
129 |
with gr.Column(scale=1):
|
|
|
147 |
example_video_3 = gr.Video(example_video_3_path, label="Example 3", visible=False)
|
148 |
use_example_button_3 = gr.Button("Load Example 3")
|
149 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
analyze_button.click(
|
151 |
fn=clear_outputs,
|
152 |
inputs=[],
|