SFP commited on
Commit
6c5b35d
·
1 Parent(s): 77d1bb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def caption(file, ext):
22
  data = response["data"]
23
  chat_completion = openai.ChatCompletion.create(
24
  model="jondurbin/airoboros-l2-70b-gpt4-1.4.1",
25
- messages=[{"role": "system", "content": "you will be given descriptions of one image from a varity of image captioning models with a varity of quality, what you need to do is combine them into one image caption and make that be your output, no extras words like \"here is your output\", remeber, don't take too much information from low quality, or too little from high. do NOT contain ANY text other than the description"},{"role":"user", "content":"High Quality:\n"+data[1]+"\n"+data[3]+"\nMedium Qualitt:\n"+data[2]+"\nLow Quality\n"+data[0]}],
26
  )
27
 
28
  return chat_completion.choices[0].message.content
 
22
  data = response["data"]
23
  chat_completion = openai.ChatCompletion.create(
24
  model="jondurbin/airoboros-l2-70b-gpt4-1.4.1",
25
+ messages=[{"role": "system", "content": "you will be given descriptions of one image from a varity of image captioning models with a varity of quality, what you need to do is combine them into one image caption and make that be your output, no extras words like \"here is your output\", remeber, don't take too much information from low quality, or too little from high. do NOT contain ANY text other than the description. Remember MERGE them and add details, and do NOT copy from any of the given descriptions, also, use prior knowledge to infer details."},{"role":"user", "content":"High Quality:\n"+data[1]+"\n"+data[3]+"\nMedium Quality:\n"+data[2]+"\nLow Quality\n"+data[0]}],
26
  )
27
 
28
  return chat_completion.choices[0].message.content