PierreBrunelle commited on
Commit
47e21f7
·
verified ·
1 Parent(s): 7456079

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def process_and_generate_post(video_file, social_media_type, progress=gr.Progres
56
  ]
57
 
58
  # Apply the UDF to create a new column
59
- t['message'] = prompt(t.sm_type, t.transcription_text)
60
 
61
  """## Generating Responses with OpenAI's GPT Model"""
62
 
@@ -114,7 +114,7 @@ import gradio as gr
114
  def gradio_interface():
115
  with gr.Blocks(theme=gr.themes.Base()) as demo:
116
  gr.Markdown("""
117
- <img src="https://raw.githubusercontent.com/pixeltable/pixeltable/main/docs/source/data/pixeltable-logo-large.png" alt="Pixeltable" width="20%" /></img>
118
  <h1>Video to Social Media Post Generator</h1>
119
  """
120
  )
 
56
  ]
57
 
58
  # Apply the UDF to create a new column
59
+ t.add_computed_column(message=prompt(t.sm_type, t.transcription_text))
60
 
61
  """## Generating Responses with OpenAI's GPT Model"""
62
 
 
114
  def gradio_interface():
115
  with gr.Blocks(theme=gr.themes.Base()) as demo:
116
  gr.Markdown("""
117
+ <img src="https://raw.githubusercontent.com/pixeltable/pixeltable/main/docs/resources/pixeltable-logo-large.png" alt="Pixeltable" width="20%" /></img>
118
  <h1>Video to Social Media Post Generator</h1>
119
  """
120
  )