Skip to content

Commit

Permalink
Upload 8 files (#6)
Browse files Browse the repository at this point in the history
- Upload 8 files (7989fa35131e5f48691b13f6ae59c642509431d0)
- Delete pre-commit-config.yaml (13858b0ee1c1b74a13c7dc4d9069285157b16773)
- Rename whitesource.txt to .whitesource (05e57a7cd1f65f23b92e5b70bb2e85e46a3b2413)
- Rename thoth.yaml to .thoth.yaml (47b57f0fa6250f080d2f05056d8802f029503090)
- Rename pep8speaks.yml to .pep8speaks.yml (b61c1b49978b6fdf539ec2a08954ed23afa6e863)
  • Loading branch information
Adam Oswald authored and system committed Nov 8, 2022
1 parent e5c405b commit dac6a78
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .pep8speaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# File : .pep8speaks.yml

scanner:
diff_only: True # If False, the entire file touched by the Pull Request is scanned for errors. If True, only the diff is scanned.
linter: pycodestyle # Other option is flake8

pycodestyle: # Same as scanner.linter value. Other option is flake8
max-line-length: 100 # Default is 79 in PEP 8
ignore: # Errors and warnings to ignore
- W504 # line break after binary operator
- E402 # module level import not at top of file
- E731 # do not assign a lambda expression, use a def
- C406 # Unnecessary list literal - rewrite as a dict literal.
- E741 # ambiguous variable name

no_blank_comment: True # If True, no comment is made on PR without any errors.
descending_issues_order: False # If True, PEP 8 issues in message will be displayed in descending order of line numbers in the file

message: # Customize the comment made by the bot
opened: # Messages when a new PR is submitted
header: "Hello @{name}! Thanks for opening this PR. "
# The keyword {name} is converted into the author's username
footer: "Do see the [Hitchhiker's guide to code style](https://goo.gl/hqbW4r)"
# The messages can be written as they would over GitHub
updated: # Messages when new commits are added to the PR
header: "Hello @{name}! Thanks for updating this PR. "
footer: "" # Why to comment the link to the style guide everytime? :)
no_errors: "There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: "
36 changes: 36 additions & 0 deletions .thoth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
host: khemenu.thoth-station.ninja
tls_verify: true
requirements_format: pipenv

runtime_environments:
- name: default
operating_system:
name: ubi
version: "8"
python_version: "3.8"
recommendation_type: latest


# https://thoth-station.ninja/docs/developers/kebechet/managers.html#available-managers
managers:
- name: info
configuration:
enabled: true
- name: label-bot
configuration:
enabled: true
- name: pipfile-requirements
configuration:
enabled: true
- name: thoth-advise
configuration:
enabled: true
- name: thoth-provenance
configuration:
enabled: true
- name: update
configuration:
enabled: true
- name: version
configuration:
enabled: true
14 changes: 14 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"scanSettings": {
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff",
"useMendCheckNames": true
},
"issueSettings": {
"minSeverityLevel": "LOW",
"issueType": "DEPENDENCY"
}
}
15 changes: 15 additions & 0 deletions cleanthat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
syntax_version: "2021-08-02"
meta:
labels:
- "cleanthat"
refs:
branches:
- "refs/heads/develop"
- "refs/heads/main"
- "refs/heads/master"
source_code:
excludes: []
includes: []
encoding: "UTF-8"
line_ending: "UNKNOWN"
languages: []
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# YOLOv5 requirements
# Usage: pip install -r requirements.txt

python-dotenv
https://gradio-builds.s3.amazonaws.com/queue-disconnect/v3/gradio-3.4b2-py3-none-any.whl
--extra-index-url https://download.pytorch.org/whl/cu113
Expand Down
12 changes: 6 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
h1 {
text-align: center;
}
div#result-grid {
#result-grid {
max-width: 600px;
max-height: 600px;
}
div#result-grid-raw {
#result-grid-raw {
max-width: 600px;
max-height: 600px;
}
div#result {
#result {
max-width: 400px;
max-height: 400px;
}
div#result-raw {
#result-raw {
max-width: 400px;
max-height: 400px;
}
div#result-video {
#result-video {
max-width: 400px;
max-height: 400px;
}
img#visitor-badge {
#visitor-badge {
display: block;
margin: auto;
}
8 changes: 5 additions & 3 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ def convert_bytes_to_pil(bytes_string: bytes) -> Image:
buffer.seek(0)
return Image.open(buffer)


def is_google_colab():
try:
import google.colab
return True
import google.colab

return True
except:
return False
return False

0 comments on commit dac6a78

Please sign in to comment.