Polarisailabs commited on
Commit
629ca65
·
verified ·
1 Parent(s): 8f788e6

Upload 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:'VegaAI'},{_C:'meta-llama/llama-3.3-70b-instruct:free',_B:'Llama'},{_C:'qwen/qwen2.5-vl-32b-instruct:free',_B:'Qwen'},{_C:'google/gemma-3-27b-it:free',_B:'Gemma'},{_C:'moonshotai/kimi-k2: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:'meta-llama/llama-4-maverick: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):