Spaces:
Running
Running
Tu Nombre commited on
Commit ·
a09b5cb
1
Parent(s): 8b8eebb
inyectar llaves directamente
Browse files- cliente_template.py +2 -2
- main.py +1 -1
cliente_template.py
CHANGED
|
@@ -7,8 +7,8 @@ import edge_tts
|
|
| 7 |
from moviepy.editor import VideoFileClip, AudioFileClip, TextClip, CompositeVideoClip
|
| 8 |
|
| 9 |
NICHO = "NICHO_PLACEHOLDER"
|
| 10 |
-
GROQ_KEY =
|
| 11 |
-
PEXELS_KEY =
|
| 12 |
LOGS = []
|
| 13 |
STATUS = "Iniciando..."
|
| 14 |
|
|
|
|
| 7 |
from moviepy.editor import VideoFileClip, AudioFileClip, TextClip, CompositeVideoClip
|
| 8 |
|
| 9 |
NICHO = "NICHO_PLACEHOLDER"
|
| 10 |
+
GROQ_KEY = "GROQ_PLACEHOLDER"
|
| 11 |
+
PEXELS_KEY = "PEXELS_PLACEHOLDER"
|
| 12 |
LOGS = []
|
| 13 |
STATUS = "Iniciando..."
|
| 14 |
|
main.py
CHANGED
|
@@ -105,7 +105,7 @@ async def crear_space(nicho: str, email: str) -> str:
|
|
| 105 |
headers = {"Authorization": f"Bearer {token_actual}", "Content-Type": "application/json"}
|
| 106 |
|
| 107 |
with open("cliente_template.py", "r") as _f:
|
| 108 |
-
main_code = _f.read().replace("NICHO_PLACEHOLDER", nicho)
|
| 109 |
|
| 110 |
req = "gradio\ngroq\nedge-tts\nmoviepy==1.0.3\nrequests\nhttpx\ngoogle-api-python-client\ngoogle-auth\ngoogle-auth-oauthlib\nimageio\nimageio-ffmpeg\ndecorator\ntqdm\nPillow\nnumpy\nopencv-python-headless"
|
| 111 |
|
|
|
|
| 105 |
headers = {"Authorization": f"Bearer {token_actual}", "Content-Type": "application/json"}
|
| 106 |
|
| 107 |
with open("cliente_template.py", "r") as _f:
|
| 108 |
+
main_code = _f.read().replace("NICHO_PLACEHOLDER", nicho).replace("GROQ_PLACEHOLDER", os.environ.get("GROQ_KEY","")).replace("PEXELS_PLACEHOLDER", os.environ.get("PEXELS_KEY",""))
|
| 109 |
|
| 110 |
req = "gradio\ngroq\nedge-tts\nmoviepy==1.0.3\nrequests\nhttpx\ngoogle-api-python-client\ngoogle-auth\ngoogle-auth-oauthlib\nimageio\nimageio-ffmpeg\ndecorator\ntqdm\nPillow\nnumpy\nopencv-python-headless"
|
| 111 |
|