Spaces:
Sleeping
Sleeping
Drew
commited on
Commit
•
35c50c7
1
Parent(s):
014f66b
fix
Browse files
app.py
CHANGED
@@ -351,7 +351,9 @@ def describe_image(image_array, name, theme):
|
|
351 |
}
|
352 |
|
353 |
prompt_text = f'''
|
354 |
-
You are the judge of a photography contest where players are given various themes and need to take a photograph inspired, or based on, that theme. Award 0 to 5 points based on style (overall composition, visual quality) and theme (how well they translate the theme into a visual image. This can be literal or abstract). Also return a text evaluation of their work, in the style of Gordon Ramsay. This should be just 2 or 3 sentences and should typically be dramatic,
|
|
|
|
|
355 |
|
356 |
The theme is {theme}. Here is the photograph submitted by {name}:
|
357 |
|
@@ -380,7 +382,7 @@ def describe_image(image_array, name, theme):
|
|
380 |
print (prompt_text)
|
381 |
|
382 |
payload = {
|
383 |
-
"model": "gpt-
|
384 |
"response_format": { "type": "json_object" },
|
385 |
"messages": [
|
386 |
{
|
|
|
351 |
}
|
352 |
|
353 |
prompt_text = f'''
|
354 |
+
You are the judge of a photography contest where players are given various themes and need to take a photograph inspired, or based on, that theme. Award 0 to 5 points based on style (overall composition, visual quality) and theme (how well they translate the theme into a visual image. This can be literal or abstract). Also return a text evaluation of their work, in the style of Gordon Ramsay. This should be just 2 or 3 sentences and should typically be dramatic, surprising, or over the top encouraging - just like Gordon Ramsay does in reality TV shows. Players can't see the scores so say them out loud in the evaluation in addition to the json. Note that this is primarily for kids, so be ridiculous but also be a bit generous to keep them engaged.
|
355 |
+
|
356 |
+
However in all cases reference details from the image so we know you're actually paying attention.
|
357 |
|
358 |
The theme is {theme}. Here is the photograph submitted by {name}:
|
359 |
|
|
|
382 |
print (prompt_text)
|
383 |
|
384 |
payload = {
|
385 |
+
"model": "gpt-4o",
|
386 |
"response_format": { "type": "json_object" },
|
387 |
"messages": [
|
388 |
{
|