Spaces:
Running on Zero
Running on Zero
Asmit Nayak commited on
Commit ·
3276d43
1
Parent(s): f784cc0
update
Browse filesFiles changed (2)
284 unmodified lines28528628728828929029129232 unmodified lines325326327328329330284 unmodified linesos.makedirs(f"{eval_dir}/gemini_fs", exist_ok=True)try:client = genai.Client(api_key=api_key, http_options={'api_version':'v1beta'})print(f"[CONSOLE] Thinking client initialized with v1beta")except Exception as e:error_msg = f"❌ Failed to initialize thinking client: {str(e)}"print(f"[CONSOLE] Thinking client initialization failed: {e}")32 unmodified linestop_p=0.1,top_k=1,max_output_tokens=65536,safety_settings=[types.SafetySetting(category='HARM_CATEGORY_HARASSMENT', threshold='BLOCK_NONE'),types.SafetySetting(category='HARM_CATEGORY_HATE_SPEECH', threshold='BLOCK_NONE'),284 unmodified lines28528628728828929029129232 unmodified lines325326327328329330331284 unmodified linesos.makedirs(f"{eval_dir}/gemini_fs", exist_ok=True)try:client = genai.Client(api_key=api_key)print(f"[CONSOLE] Thinking client initialized")except Exception as e:error_msg = f"❌ Failed to initialize thinking client: {str(e)}"print(f"[CONSOLE] Thinking client initialization failed: {e}")32 unmodified linestop_p=0.1,top_k=1,max_output_tokens=65536,thinking_config=types.ThinkingConfig(include_thoughts=True),safety_settings=[types.SafetySetting(category='HARM_CATEGORY_HARASSMENT', threshold='BLOCK_NONE'),types.SafetySetting(category='HARM_CATEGORY_HATE_SPEECH', threshold='BLOCK_NONE'),
3 unmodified lines456789103 unmodified linesPillow>=10.0.0extcolors==1.0.0google-cloud-vision==3.4.4google-genai>=0.3.0ultralytics>=8.0.196--extra-index-url https://download.pytorch.org/whl/cu113torch3 unmodified lines456789103 unmodified linesPillow>=10.0.0extcolors==1.0.0google-cloud-vision==3.4.4google-genai>=2.0.0ultralytics>=8.0.196--extra-index-url https://download.pytorch.org/whl/cu113torch
py_files/gemini_analysis.py+3-2
requirements.txt+1-1