Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ sys_prompt = read('system_prompt.txt')
|
|
| 21 |
|
| 22 |
def process_text(text_input, unit):
|
| 23 |
if text_input:
|
| 24 |
-
|
| 25 |
model=MODEL,
|
| 26 |
messages=[
|
| 27 |
{"role": "system", "content": f" You are a helpful {unit} doctor." + sys_prompt},
|
|
|
|
| 21 |
|
| 22 |
def process_text(text_input, unit):
|
| 23 |
if text_input:
|
| 24 |
+
response = client.chat.completions.create(
|
| 25 |
model=MODEL,
|
| 26 |
messages=[
|
| 27 |
{"role": "system", "content": f" You are a helpful {unit} doctor." + sys_prompt},
|