Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ mpy_config.change_settings({"IMAGEMAGICK_BINARY": "/usr/bin/convert"})
|
|
44 |
# ---------------- Global Configuration ---------------- #
|
45 |
PEXELS_API_KEY = 'BhJqbcdm9Vi90KqzXKAhnEHGsuFNv4irXuOjWtT761U49lRzo03qBGna'
|
46 |
OPENROUTER_API_KEY = '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'
|
47 |
-
OPENROUTER_MODEL = "
|
48 |
OUTPUT_VIDEO_FILENAME = "final_video.mp4"
|
49 |
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
|
50 |
|
@@ -88,7 +88,7 @@ def generate_script(user_input):
|
|
88 |
If I say "use this," just output the script exactly as I gave it.
|
89 |
If I only give topics, generate a script based on them.
|
90 |
If I provide a full script, rewrite it without any changes. Make everything short simple and humarous funny and act as serious but humarous. And don't say anything off topic. Also alway say a funny statement to subscribe based on the video topic at the end. Use normal conversational text like a normal person talking and avoid AI phase make the statements humanize and normal conversational
|
91 |
-
And always talk negative views don't really wants any positive statement and the full script will be one video about one topic so keep in mind
|
92 |
Formatting Rules:
|
93 |
|
94 |
|
|
|
44 |
# ---------------- Global Configuration ---------------- #
|
45 |
PEXELS_API_KEY = 'BhJqbcdm9Vi90KqzXKAhnEHGsuFNv4irXuOjWtT761U49lRzo03qBGna'
|
46 |
OPENROUTER_API_KEY = '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'
|
47 |
+
OPENROUTER_MODEL = "google/gemini-2.0-flash-exp:free"
|
48 |
OUTPUT_VIDEO_FILENAME = "final_video.mp4"
|
49 |
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
|
50 |
|
|
|
88 |
If I say "use this," just output the script exactly as I gave it.
|
89 |
If I only give topics, generate a script based on them.
|
90 |
If I provide a full script, rewrite it without any changes. Make everything short simple and humarous funny and act as serious but humarous. And don't say anything off topic. Also alway say a funny statement to subscribe based on the video topic at the end. Use normal conversational text like a normal person talking and avoid AI phase make the statements humanize and normal conversational
|
91 |
+
And always talk negative views don't really wants any positive statement and the full script will be one video about one topic so keep in mind. also make the script as human like you can and also use native english sometime and also dont use one thing over and over it feels AI i want Human like script as a human wrote it.
|
92 |
Formatting Rules:
|
93 |
|
94 |
|