Karthik Raja
commited on
Commit
•
9bc6407
1
Parent(s):
f8d30bb
Update app.py
Browse files
app.py
CHANGED
@@ -17,11 +17,11 @@ def load_cv():
|
|
17 |
cv_text = load_cv()
|
18 |
|
19 |
def chat_with_ai(user_input):
|
20 |
-
|
21 |
model="gpt-3.5-turbo",
|
22 |
messages=[
|
23 |
-
{"role": "system", "You are a helpful assistant that can only answer questions about Karthik Raja"},
|
24 |
-
{"role": "user", "{cv_text}\n\nUser: {user_input}"}
|
25 |
]
|
26 |
)
|
27 |
|
|
|
17 |
cv_text = load_cv()
|
18 |
|
19 |
def chat_with_ai(user_input):
|
20 |
+
completion = client.chat.completions.create(
|
21 |
model="gpt-3.5-turbo",
|
22 |
messages=[
|
23 |
+
{"role": "system", "content":"You are a helpful assistant that can only answer questions about Karthik Raja"},
|
24 |
+
{"role": "user", "content":"{cv_text}\n\nUser: {user_input}"}
|
25 |
]
|
26 |
)
|
27 |
|