Nancy77 commited on
Commit
e801ecc
·
verified ·
1 Parent(s): 250e141

changed code

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"] = "r8_Djd5NwqalQ0wwD9jsdBHOtyUhwCiEBU1R5oO6"
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 = "c9000cf8cfc73ea3b0b116e60ff234eea944e0529424e663da47fe095c2cae69" # 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:
 
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: