Update app.py
Browse files
app.py
CHANGED
@@ -296,7 +296,7 @@ def plot_emotion(df, emotion):
|
|
296 |
ax.xaxis.set_major_locator(MaxNLocator(nbins=100))
|
297 |
ticks = ax.get_xticks()
|
298 |
ax.set_xticklabels([df['Timecode'].iloc[int(tick)] if tick >= 0 and tick < len(df) else '' for tick in ticks], rotation=90, ha='right')
|
299 |
-
plt.tight_layout()
|
300 |
return fig
|
301 |
|
302 |
def process_video(video_path, num_anomalies, num_components, desired_fps, batch_size, progress=gr.Progress()):
|
|
|
296 |
ax.xaxis.set_major_locator(MaxNLocator(nbins=100))
|
297 |
ticks = ax.get_xticks()
|
298 |
ax.set_xticklabels([df['Timecode'].iloc[int(tick)] if tick >= 0 and tick < len(df) else '' for tick in ticks], rotation=90, ha='right')
|
299 |
+
plt.tight_layout()
|
300 |
return fig
|
301 |
|
302 |
def process_video(video_path, num_anomalies, num_components, desired_fps, batch_size, progress=gr.Progress()):
|