Skip to content

Commit

Permalink
fix: Remove dependency on colab from prompt optimizer. (GoogleCloudPl…
Browse files Browse the repository at this point in the history
…atform#1241)

Co-authored-by: hootan <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Holt Skinner <[email protected]>
  • Loading branch information
4 people authored Oct 11, 2024
1 parent 36a0967 commit fde9bee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/actions/spelling/allow.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ cer
cfbundle
chatbots
chromadb
cimg
claude
clickable
cmap
Expand All @@ -378,6 +379,7 @@ constexpr
corpuses
csa
cse
ctd
cupertino
dask
dataframe
Expand Down
3 changes: 0 additions & 3 deletions gemini/prompts/prompt_optimizer/vapo_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,12 @@
from IPython.core.display import DisplayHandle
from IPython.display import HTML, display
from google.cloud import aiplatform, storage
from google.colab import output
import ipywidgets as widgets
import jinja2
import jinja2.meta
import pandas as pd
from tensorflow.io import gfile

output.enable_custom_widget_manager()


def is_target_required_metric(eval_metric: str) -> bool:
"""Check if the metric requires the target label."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@
"import json\n",
"import time\n",
"\n",
"from google.colab import auth\n",
"\n",
"timestamp = datetime.datetime.now().strftime(\"%Y-%m-%dT%H:%M:%S\")\n",
"display_name = f\"pt_{timestamp}\"\n",
"\n",
Expand Down

0 comments on commit fde9bee

Please sign in to comment.