Skip to content

Commit

Permalink
fix pytype error in google cloud custom model wrapper
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 684917521
Change-Id: Iebca6ac1dbafe930cba238d29d1261b4f8d12375
  • Loading branch information
jzleibo authored and copybara-github committed Oct 11, 2024
1 parent 4f45816 commit 89ed637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concordia/language_model/google_cloud_custom_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def sample_text(

max_tokens = min(max_tokens, _DEFAULT_MAX_TOKENS)

result = None
result = ""
for attempts in range(_MAX_ATTEMPTS):
if attempts > 0:
seconds_to_sleep = _SECONDS_TO_SLEEP_WHEN_RATE_LIMITED + random.uniform(
Expand Down

0 comments on commit 89ed637

Please sign in to comment.