Peiiiiiiiiru
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def calculate_movie_potential(extracted_text, api_key):
|
|
36 |
max_tokens=1000,
|
37 |
temperature=0.7
|
38 |
)
|
39 |
-
response_text = response.choices[0]
|
40 |
|
41 |
return response_text
|
42 |
|
|
|
36 |
max_tokens=1000,
|
37 |
temperature=0.7
|
38 |
)
|
39 |
+
response_text = response.choices[0].message.content.strip()
|
40 |
|
41 |
return response_text
|
42 |
|