Spaces:
Runtime error
Runtime error
changed code
Browse files
app.py
CHANGED
|
@@ -130,7 +130,7 @@ overlay_text("input_video.mp4", "Dynamic Text", "Vertical scroll")
|
|
| 130 |
|
| 131 |
def text_to_video_section():
|
| 132 |
# Set your Replicate API token
|
| 133 |
-
os.environ["REPLICATE_API_TOKEN"]
|
| 134 |
st.title("Text-to-Video Generation")
|
| 135 |
|
| 136 |
# Input prompt from user
|
|
@@ -187,7 +187,7 @@ def extract_keywords(article):
|
|
| 187 |
return keywords
|
| 188 |
|
| 189 |
def fetch_images(query):
|
| 190 |
-
api_key = "
|
| 191 |
endpoint = f"https://serpapi.com/search?engine=google_images&q={query}&api_key={api_key}"
|
| 192 |
|
| 193 |
try:
|
|
|
|
| 130 |
|
| 131 |
def text_to_video_section():
|
| 132 |
# Set your Replicate API token
|
| 133 |
+
apikey=os.environ["REPLICATE_API_TOKEN"]
|
| 134 |
st.title("Text-to-Video Generation")
|
| 135 |
|
| 136 |
# Input prompt from user
|
|
|
|
| 187 |
return keywords
|
| 188 |
|
| 189 |
def fetch_images(query):
|
| 190 |
+
api_key = os.getenv("serp_key") # Replace "YOUR_API_KEY" with your actual API key
|
| 191 |
endpoint = f"https://serpapi.com/search?engine=google_images&q={query}&api_key={api_key}"
|
| 192 |
|
| 193 |
try:
|