Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -168,10 +168,11 @@ def text_to_video_section():
|
|
168 |
|
169 |
def extract_keywords(article):
|
170 |
|
171 |
-
prompt = f"
|
|
|
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}
|