Polarisailabs commited on
Commit
3a833d5
·
verified ·
1 Parent(s): 34b0c8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def retrieve(retriever_engine,query_str):
57
  else:C.append(A.text)
58
  return B,C
59
  qa_tmpl_str='Given the provided information, including relevant images and retrieved context from the video, accurately and precisely answer the query without any additional prior knowledge.\nPlease ensure honesty and responsibility, refraining from any racist or sexist remarks.\n---------------------\nContext: {context_str}\nMetadata for video: {metadata_str} \n---------------------\nQuery: {query_str}\nAnswer: '
60
- available_models=[{_C:'meta-llama/llama-3.3-70b-instruct:free',_B:'Llama'},{_C:'qwen/qwen2.5-vl-72b-instruct:free',_B:'Qwen'},{_C:'google/gemma-3-27b-it:free',_B:'Gemma'},{_C:'moonshotai/kimi-vl-a3b-thinking:free',_B:'Kimi'},{_C:'google/gemini-2.0-flash-exp:free',_B:'Gemini'}]
61
  model_value_to_label={A[_C]:A[_B]for A in available_models}
62
  model_label_to_value={A[_B]:A[_C]for A in available_models}
63
  def gradio_chat(query,model_label):
 
57
  else:C.append(A.text)
58
  return B,C
59
  qa_tmpl_str='Given the provided information, including relevant images and retrieved context from the video, accurately and precisely answer the query without any additional prior knowledge.\nPlease ensure honesty and responsibility, refraining from any racist or sexist remarks.\n---------------------\nContext: {context_str}\nMetadata for video: {metadata_str} \n---------------------\nQuery: {query_str}\nAnswer: '
60
+ available_models=[{_C:'openai/gpt-oss-20b:free',_B:'Llama'},{_C:'qwen/qwen2.5-vl-72b-instruct:free',_B:'Qwen'},{_C:'google/gemma-3-27b-it:free',_B:'Gemma'},{_C:'moonshotai/kimi-vl-a3b-thinking:free',_B:'Kimi'},{_C:'google/gemini-2.0-flash-exp:free',_B:'Gemini'}]
61
  model_value_to_label={A[_C]:A[_B]for A in available_models}
62
  model_label_to_value={A[_B]:A[_C]for A in available_models}
63
  def gradio_chat(query,model_label):