Skip to content

Commit

Permalink
ruff check --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gschoeni committed Dec 19, 2024
1 parent 7204b98 commit 90bb5c7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
3 changes: 0 additions & 3 deletions examples/rag/03_search_and_retrieval.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
from PIL import Image
import requests
import oxen
import os
import argparse
import pandas as pd
from typing import List
from oxen import Workspace, DataFrame, RemoteRepo

from transformers import CLIPProcessor, CLIPModel

HTTP_HOST = "localhost:3001"
HTTP_SCHEME = "http"
Expand Down
1 change: 0 additions & 1 deletion scripts/git2oxen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from git import Repo as GitRepo
from oxen import Repo as OxenRepo

import pandas as pd
import time
import os
import shutil
Expand Down
4 changes: 2 additions & 2 deletions scripts/hf2oxen.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import argparse
import os
from huggingface_hub import list_repo_refs, HfApi
from huggingface_hub import HfApi
from datasets import load_dataset
from oxen.remote_repo import create_repo, get_repo
from oxen import Repo
Expand Down Expand Up @@ -83,7 +83,7 @@ def download_dataset_subsets(dataset_name, subsets, local_repo, data_dir, commit
branch_names = [branch.name for branch in local_repo.branches()]
print(f"Branches: {branch_names}")
print(f"Checking out branch {branch_name}...")
if not branch_name in branch_names:
if branch_name not in branch_names:
print(f"Creating branch {branch_name}...")
local_repo.checkout(branch_name, create=True)

Expand Down
1 change: 0 additions & 1 deletion scripts/index_twice.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from oxen import RemoteRepo
from oxen import Workspace
from oxen import DataFrame
import time

print("Creating Remote Repo")
repo = RemoteRepo("ox/LLM-Dataset", "localhost:3001", scheme="http")
Expand Down
3 changes: 0 additions & 3 deletions scripts/test_advance_branch.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from oxen import RemoteRepo
from oxen import RemoteDataset
import openai
import tqdm
from oxen.data_frame import index_dataset

print("Creating Remote Repo")
repo = RemoteRepo("ox/Testing123", "staging.hub.oxen.ai")
Expand Down

0 comments on commit 90bb5c7

Please sign in to comment.