This file contains hidden or 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
| #!/bin/bash | |
| # Variables | |
| JENKINS_HOME="/var/lib/jenkins" # Replace with your Jenkins home directory | |
| S3_BUCKET="s3://your-s3-bucket-name" # Replace with your S3 bucket name | |
| DATE=$(date +%Y-%m-%d) # Today's date | |
| # Check if AWS CLI is installed | |
| if ! command -v aws &> /dev/null; then | |
| echo "AWS CLI is not installed. Please install it to proceed." |
This file contains hidden or 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
| import asyncio | |
| import base64 | |
| import json | |
| import os | |
| import pyaudio | |
| from websockets.asyncio.client import connect | |
| class SimpleGeminiVoice: | |
| def __init__(self): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| import argparse | |
| from pdfminer.high_level import extract_text | |
| from sentence_transformers import SentenceTransformer, CrossEncoder, util | |
| from text_generation import Client | |
| PREPROMPT = "Below are a series of dialogues between various people and an AI assistant. The AI tries to be helpful, polite, honest, sophisticated, emotionally aware, and humble-but-knowledgeable. The assistant is happy to help with almost anything, and will do its best to understand exactly what is needed. It also tries to avoid giving false or misleading information, and it caveats when it isn't entirely sure about the right answer. That said, the assistant is practical and really does its best, and doesn't let caution get too much in the way of being useful.\n" | |
| PROMPT = """"Use the following pieces of context to answer the question at the end. | |
| If you don't know the answer, just say that you don't know, don't try to |