Spaces:
Running
Running
Update app.py
Browse files
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"):
|