Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -168,8 +168,7 @@ def text_to_video_section():
|
|
| 168 |
|
| 169 |
def extract_keywords(article):
|
| 170 |
|
| 171 |
-
prompt = f"Read the article provided below ,
|
| 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",
|
|
|
|
| 168 |
|
| 169 |
def extract_keywords(article):
|
| 170 |
|
| 171 |
+
prompt = f"Read the article provided below ,pick out the 5 important keywords ,add .jpg at the end of the keywords. Do not provide any additional text or explanations. Article: {article}"
|
|
|
|
| 172 |
|
| 173 |
completions = client.chat.completions.create(
|
| 174 |
model="gpt-4-1106-preview",
|