-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds compatibility with NVIDIA AI Workbench (#6)
* Create test.txt * Add files via upload * Delete .project/test.txt * Rename configpacks (1).txt to configpacks * Update and rename spec (2).yaml to spec.yaml * Changed env w/ pip. Project Spec Modified & more... - Added pip packages: ujson, jupyterlab>3.0, gradio==4.43.0 - Removed pip packages: ujson - Deleted secret 'NIM_KEY' - Created secret 'NVIDIA_API_KEY' - Added 29 files - Modified 6 files * Project Spec Modified. Modified 2 files - Deleted secret 'SENDER_EMAIL_PASSWORD' - Modified files: README.md, models.json * Update README.md * Update README.md * Update README.md * Update README.md * Modified 2 files - Modified files: frontend/__main__.py, frontend/output.log * Modified 4 files - Modified files: frontend/__main__.py, frontend/utils/email_demo.py, models.json, variables.env * Modified 4 files - Modified files: README.md, frontend/__main__.py, models.json, variables.env * Update README.md * Modified 2 files - Modified files: docker-compose.yaml, frontend/__main__.py * Added 2 files, Modified 4 files - Added files: workbench/PDFtoPodcast.ipynb, workbench/README.md - Modified files: README.md, frontend/__main__.py, launchable/PDFtoPodcast.ipynb, variables.env * Modified workbench/README.md - Modified files: workbench/README.md * Update README.md * Modified 2 files - Modified files: frontend/__main__.py, frontend/utils/email_demo.py * Update README.md * Update .gitignore
- Loading branch information
Showing
39 changed files
with
2,932 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*defaults.ContainerUser | ||
*bash.PreBuild | ||
*defaults.EnvVars | ||
*defaults.Readme | ||
*defaults.Entrypoint | ||
*apt.PackageManager | ||
*bash.PreLanguage | ||
*python.PipPackageManager | ||
*bash.PostBuild | ||
*jupyterlab.JupyterLab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
specVersion: v2 | ||
specMinorVersion: 2 | ||
meta: | ||
name: pdf-to-podcast | ||
image: project-pdf-to-podcast | ||
description: "" | ||
labels: [] | ||
createdOn: "2024-12-06T19:19:11Z" | ||
defaultBranch: main | ||
layout: | ||
- path: docs/ | ||
type: code | ||
storage: git | ||
- path: samples/ | ||
type: code | ||
storage: git | ||
- path: services/ | ||
type: code | ||
storage: git | ||
- path: shared/ | ||
type: code | ||
storage: git | ||
- path: tests/ | ||
type: code | ||
storage: git | ||
- path: launchable/ | ||
type: code | ||
storage: git | ||
- path: frontend/ | ||
type: code | ||
storage: git | ||
environment: | ||
base: | ||
registry: nvcr.io | ||
image: nvidia/ai-workbench/python-basic:1.0.2 | ||
build_timestamp: "20241001182612" | ||
name: Python Basic | ||
supported_architectures: [] | ||
cuda_version: "" | ||
description: A Python Base with Jupyterlab | ||
entrypoint_script: "" | ||
labels: | ||
- ubuntu | ||
- python3 | ||
- jupyterlab | ||
apps: | ||
- name: jupyterlab | ||
type: jupyterlab | ||
class: webapp | ||
start_command: jupyter lab --allow-root --port 8888 --ip 0.0.0.0 --no-browser | ||
--NotebookApp.base_url=\$PROXY_PREFIX --NotebookApp.default_url=/lab --NotebookApp.allow_origin='*' | ||
health_check_command: '[ \$(echo url=\$(jupyter lab list | head -n 2 | tail | ||
-n 1 | cut -f1 -d'' '' | grep -v ''Currently'' | sed "s@/?@/lab?@g") | curl | ||
-o /dev/null -s -w ''%{http_code}'' --config -) == ''200'' ]' | ||
stop_command: jupyter lab stop 8888 | ||
user_msg: "" | ||
logfile_path: "" | ||
timeout_seconds: 60 | ||
icon_url: "" | ||
webapp_options: | ||
autolaunch: true | ||
port: "8888" | ||
proxy: | ||
trim_prefix: false | ||
url_command: jupyter lab list | head -n 2 | tail -n 1 | cut -f1 -d' ' | grep | ||
-v 'Currently' | ||
programming_languages: | ||
- python3 | ||
icon_url: https://workbench.download.nvidia.com/static/img/ai-workbench-icon-rectangle.jpg | ||
image_version: 1.0.5 | ||
os: linux | ||
os_distro: ubuntu | ||
os_distro_release: "22.04" | ||
schema_version: v2 | ||
user_info: | ||
uid: "" | ||
gid: "" | ||
username: "" | ||
package_managers: | ||
- name: apt | ||
binary_path: /usr/bin/apt | ||
installed_packages: | ||
- curl | ||
- git | ||
- git-lfs | ||
- python3 | ||
- gcc | ||
- python3-dev | ||
- python3-pip | ||
- vim | ||
- name: pip | ||
binary_path: /usr/bin/pip | ||
installed_packages: | ||
- jupyterlab==4.2.4 | ||
package_manager_environment: | ||
name: "" | ||
target: "" | ||
execution: | ||
apps: | ||
- name: frontend | ||
type: custom | ||
class: webapp | ||
start_command: PROXY_PREFIX=$PROXY_PREFIX python3 -m frontend | ||
health_check_command: curl -f "http://localhost:7860/" | ||
stop_command: pkill -f "^python3 -m frontend" | ||
user_msg: "" | ||
logfile_path: "" | ||
timeout_seconds: 30 | ||
icon_url: "" | ||
webapp_options: | ||
autolaunch: true | ||
port: "7860" | ||
proxy: | ||
trim_prefix: false | ||
url: http://localhost:7860/ | ||
resources: | ||
gpu: | ||
requested: 0 | ||
sharedMemoryMB: 0 | ||
secrets: | ||
- variable: ELEVENLABS_API_KEY | ||
description: "" | ||
- variable: NVIDIA_API_KEY | ||
description: "" | ||
mounts: | ||
- type: project | ||
target: /project/ | ||
description: Project directory | ||
options: rw | ||
- type: volume | ||
target: /nvwb-shared-volume/ | ||
description: "" | ||
options: volumeName=nvwb-shared-volume |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
Oops, something went wrong.