Nancy77 commited on
Commit
135cfdb
·
verified ·
1 Parent(s): faa8a79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -168,10 +168,11 @@ def text_to_video_section():
168
 
169
  def extract_keywords(article):
170
 
171
- prompt = f"pick out the 5 important keywords from the {article} and add .jpg at the end of the keywords. Do not provide any additional textsor explanations"
 
172
 
173
  completions = client.chat.completions.create(
174
- model="gpt-4",
175
  messages=[
176
 
177
  {"role": "user", "content": prompt}
 
168
 
169
  def extract_keywords(article):
170
 
171
+ prompt = f"Read the article provided below ,understand the meaning of the article and pick out the 5 most important keyword .
172
+ Article: {article} . add .jpg at the end of the keywords. Do not provide any additional text or explanations"
173
 
174
  completions = client.chat.completions.create(
175
+ model="gpt-4-1106-preview",
176
  messages=[
177
 
178
  {"role": "user", "content": prompt}