Make upload_video call asynchronous in make_slideshow function
Browse files214 unmodified lines215216217218219220221214 unmodified lines# Return URL to the videobase_url = "https://saq1b-api.hf.space/static"video_url = f"{base_url}/{request_id}/slideshow.mp4"uploaded_video_url = upload_video(video_url)return {"url": uploaded_video_url}except Exception as e:214 unmodified lines215216217218219220221214 unmodified lines# Return URL to the videobase_url = "https://saq1b-api.hf.space/static"video_url = f"{base_url}/{request_id}/slideshow.mp4"uploaded_video_url = await upload_video(video_url)return {"url": uploaded_video_url}except Exception as e:
main.py+1-1