PierreBrunelle commited on
Commit
bbaf99c
1 Parent(s): 8acae36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -76,13 +76,13 @@ def process_and_generate_post(video_file, social_media_type):
76
  audio = t.select(t.audio).tail(1)['audio'][0]
77
 
78
  # Retrieve thumbnails
79
- thumbnails = frames_view.select(frames_view.frame).tail(2)['frame']
80
 
81
  # Retrieve Pixeltable Table containing all videos and stored data
82
  df_output = t.collect().to_pandas()
83
 
84
  #Display content
85
- return social_media_post, thumbnails, df_output
86
 
87
  except Exception as e:
88
  return f"An error occurred: {str(e)}", None
@@ -91,7 +91,7 @@ def process_and_generate_post(video_file, social_media_type):
91
  import gradio as gr
92
 
93
  def gradio_interface():
94
- with gr.Blocks(theme=gr.themes.Soft()) as demo:
95
  gr.Markdown(
96
  """
97
  <center>
 
76
  audio = t.select(t.audio).tail(1)['audio'][0]
77
 
78
  # Retrieve thumbnails
79
+ thumbnails = frames_view.select(frames_view.frame).tail(4)['frame']
80
 
81
  # Retrieve Pixeltable Table containing all videos and stored data
82
  df_output = t.collect().to_pandas()
83
 
84
  #Display content
85
+ return social_media_post, thumbnails, df_output, audio
86
 
87
  except Exception as e:
88
  return f"An error occurred: {str(e)}", None
 
91
  import gradio as gr
92
 
93
  def gradio_interface():
94
+ with gr.Blocks(theme=gr.themes.Monochrome()) as demo:
95
  gr.Markdown(
96
  """
97
  <center>