Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Follow it before making changes.

## 3) Environment and Setup Commands

- Python version: `>=3.11` (from `pyproject.toml`).
- Python version: `>=3.12` (from `pyproject.toml`).
- Dependency manager used in docs: `uv`.
- Create local env file: `cp .env.example .env`.
- Install dependencies: `uv sync`.
Expand Down
1 change: 1 addition & 0 deletions Backend/db.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import os

from sqlalchemy import create_engine
Expand Down
1 change: 1 addition & 0 deletions Backend/gpt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import re
import os
import json
Expand Down
1 change: 1 addition & 0 deletions Backend/logstream.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import json
import queue
import re
Expand Down
12 changes: 12 additions & 0 deletions Backend/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
import os
import sys


#Version check before the code continues to mitigate torch incompat later on.
py_version = sys.version
print(py_version)
if '3.11' or '3.12' in py_version:
pass
if '3.13' in py_version:
raise Exception("Need Python Version 3.12 or 3.11")



from dotenv import load_dotenv
from flask import Flask, jsonify, request
Expand Down
1 change: 1 addition & 0 deletions Backend/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
from datetime import datetime
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions Backend/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import os
import shutil
import subprocess
Expand Down
1 change: 1 addition & 0 deletions Backend/repository.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
from datetime import datetime, timezone
from typing import Optional
from uuid import uuid4
Expand Down
1 change: 1 addition & 0 deletions Backend/search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import requests

from typing import List
Expand Down
2 changes: 1 addition & 1 deletion Backend/tiktokvoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# topic: TikTok-Voice-TTS
# version: 1.0
# credits: https://github.com/oscie57/tiktok-voice

#Requires Python 3.12 or sooner
# --- MODIFIED VERSION --- #

import base64
Expand Down
1 change: 1 addition & 0 deletions Backend/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import os
import sys
import random
Expand Down
1 change: 1 addition & 0 deletions Backend/video.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import os
import uuid

Expand Down
1 change: 1 addition & 0 deletions Backend/worker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import time

from dotenv import load_dotenv
Expand Down
1 change: 1 addition & 0 deletions Backend/youtube.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Requires Python 3.12 or sooner
import os
import sys
import time
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "moneyprinter"
version = "1.0.0"
description = "Automate the creation of YouTube Shorts by providing a video topic."
readme = "README.md"
requires-python = ">=3.11"
requires-python = "<=3.12.0"
dependencies = [
"requests==2.31.0",
"ollama==0.5.1",
Expand Down