sheikhed commited on
Commit
cb503aa
·
verified ·
1 Parent(s): 9c69ffc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -2,6 +2,12 @@ import os
2
  import instaloader
3
  from moviepy.editor import VideoFileClip
4
  import gradio as gr
 
 
 
 
 
 
5
 
6
  # Function to download Instagram reel
7
  def download_instagram_reel(url, output_folder="downloads"):
 
2
  import instaloader
3
  from moviepy.editor import VideoFileClip
4
  import gradio as gr
5
+ from pydantic import BaseModel
6
+
7
+ # Custom Pydantic Config to avoid schema generation issues
8
+ class Config(BaseModel):
9
+ class Config:
10
+ arbitrary_types_allowed = True
11
 
12
  # Function to download Instagram reel
13
  def download_instagram_reel(url, output_folder="downloads"):