Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def analyze_video(video_path, progress=gr.Progress()):
|
|
80 |
|
81 |
# Pad with None for any missing speakers
|
82 |
while len(output_components) < 28:
|
83 |
-
output_components.extend([gr.update(visible=
|
84 |
|
85 |
return output_components
|
86 |
|
@@ -106,7 +106,7 @@ def get_middle_frame(video_path):
|
|
106 |
return None
|
107 |
|
108 |
with gr.Blocks() as iface:
|
109 |
-
gr.Markdown("# Multiple
|
110 |
gr.Markdown("This project provides an advanced AI system designed for diagnosing and profiling personality attributes from video content based on a single speaker or multiple speakers in a conversation.")
|
111 |
|
112 |
with gr.Row():
|
@@ -126,13 +126,13 @@ with gr.Blocks() as iface:
|
|
126 |
with open('description.txt', 'r') as file:
|
127 |
description_txt = file.read()
|
128 |
|
129 |
-
with gr.Tab(label=f'Description'
|
130 |
gr.Markdown(description_txt)
|
131 |
gr.HTML("<div style='height: 20px;'></div>")
|
132 |
gr.Image(value="appendix/AI Personality Detection flow - 1.png", label='Flowchart 1', width=1000)
|
133 |
gr.Image(value="appendix/AI Personality Detection flow - 2.png", label='Flowchart 2', width=1000)
|
134 |
|
135 |
-
with gr.Tab(label=f'Examples'
|
136 |
gr.Markdown("### Example Videos")
|
137 |
with gr.Row():
|
138 |
with gr.Column(scale=1):
|
|
|
80 |
|
81 |
# Pad with None for any missing speakers
|
82 |
while len(output_components) < 28:
|
83 |
+
output_components.extend([gr.update(visible=False)] * 9)
|
84 |
|
85 |
return output_components
|
86 |
|
|
|
106 |
return None
|
107 |
|
108 |
with gr.Blocks() as iface:
|
109 |
+
gr.Markdown("# Multiple Speakers Personality Analyzer")
|
110 |
gr.Markdown("This project provides an advanced AI system designed for diagnosing and profiling personality attributes from video content based on a single speaker or multiple speakers in a conversation.")
|
111 |
|
112 |
with gr.Row():
|
|
|
126 |
with open('description.txt', 'r') as file:
|
127 |
description_txt = file.read()
|
128 |
|
129 |
+
with gr.Tab(label=f'Description'):
|
130 |
gr.Markdown(description_txt)
|
131 |
gr.HTML("<div style='height: 20px;'></div>")
|
132 |
gr.Image(value="appendix/AI Personality Detection flow - 1.png", label='Flowchart 1', width=1000)
|
133 |
gr.Image(value="appendix/AI Personality Detection flow - 2.png", label='Flowchart 2', width=1000)
|
134 |
|
135 |
+
with gr.Tab(label=f'Examples'):
|
136 |
gr.Markdown("### Example Videos")
|
137 |
with gr.Row():
|
138 |
with gr.Column(scale=1):
|