Skip to content

Commit

Permalink
Merge pull request #10 from paplorinc/paplorinc-patch-1
Browse files Browse the repository at this point in the history
Fix colab incompatibilty
  • Loading branch information
zetavg authored Apr 19, 2023
2 parents acb1b11 + 81aa30e commit e302cf6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions llama_lora/lib/csv_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re
import secrets
from pathlib import Path
from typing import Any, List
from typing import Any, List, Union

class CSVLogger(FlaggingCallback):
"""
Expand All @@ -25,6 +25,8 @@ def __init__(self):

def setup(
self,
components: List[Any],
flagging_dir: Union[str, Path],
components,
flagging_dir,
):
Expand All @@ -36,7 +38,7 @@ def flag(
self,
flag_data: List[Any],
flag_option: str = "",
username=None,
username: Union[str, None] = None,
filename="log.csv",
) -> int:
flagging_dir = self.flagging_dir
Expand Down

0 comments on commit e302cf6

Please sign in to comment.