Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,11 +138,11 @@ def ask_gpt(question, model="gpt-3.5-turbo"):
|
|
| 138 |
"""
|
| 139 |
|
| 140 |
response = client.chat.completions.create(
|
| 141 |
-
|
| 142 |
# model="gpt-4-vision-preview",
|
| 143 |
# model = "gpt-4-0125-preview",
|
| 144 |
# model = "gpt-4",
|
| 145 |
-
model = "gpt-4-turbo-preview",
|
| 146 |
messages=[
|
| 147 |
{"role": "system", "content": "You are a knowledgeable medical database designed to provide concise and direct answers to medical questions."},
|
| 148 |
{"role": "user", "content": question}
|
|
|
|
| 138 |
"""
|
| 139 |
|
| 140 |
response = client.chat.completions.create(
|
| 141 |
+
model=model,
|
| 142 |
# model="gpt-4-vision-preview",
|
| 143 |
# model = "gpt-4-0125-preview",
|
| 144 |
# model = "gpt-4",
|
| 145 |
+
# model = "gpt-4-turbo-preview",
|
| 146 |
messages=[
|
| 147 |
{"role": "system", "content": "You are a knowledgeable medical database designed to provide concise and direct answers to medical questions."},
|
| 148 |
{"role": "user", "content": question}
|