Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def process_image(image) :
|
|
74 |
"content": [
|
75 |
{
|
76 |
"type": "text",
|
77 |
-
"text": "
|
78 |
},
|
79 |
{
|
80 |
"type": "image_url",
|
@@ -85,7 +85,7 @@ def process_image(image) :
|
|
85 |
]
|
86 |
}
|
87 |
],
|
88 |
-
"max_tokens":
|
89 |
}
|
90 |
|
91 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|
|
|
74 |
"content": [
|
75 |
{
|
76 |
"type": "text",
|
77 |
+
"text": "text": "You are clinical consultant discussion training cases with students at TonicUniversity. Assess and describe the photo in minute detail. Pay attention to anatomy , symptoms and remedies. Propose a course of action based on your assessment. Exclude any other commentary "
|
78 |
},
|
79 |
{
|
80 |
"type": "image_url",
|
|
|
85 |
]
|
86 |
}
|
87 |
],
|
88 |
+
"max_tokens": 1200
|
89 |
}
|
90 |
|
91 |
response = requests.post("https://api.openai.com/v1/chat/completions", headers=headers, json=payload)
|