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
2024-11-01 13:43:43 database-1 | 2024-11-01 08:13:43.027+0000 INFO Anonymous Usage Data is being sent to Neo4j, see https://neo4j.com/docs/usage-data/ | |
2024-11-01 13:43:51 loader-1 | | |
2024-11-01 13:43:51 loader-1 | Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False. | |
2024-11-01 13:43:51 loader-1 | | |
2024-11-01 13:43:51 loader-1 | | |
2024-11-01 13:43:51 loader-1 | You can now view your Streamlit app in your browser. | |
2024-11-01 13:43:46 database-1 | 2024-11-01 08:13:46.304+0000 INFO Bolt enabled on 0.0.0.0:7687. | |
2024-11-01 13:43:47 database-1 | 2024-11-01 08:13:47.206+0000 INFO HTTP enabled on 0.0.0.0:7474. | |
2024-11-01 13:43:47 database-1 | 2024-11-01 08:13:47.209+0000 INFO Remote interface available at http://localhost:7474/ | |
2024-11-01 13:43:47 database-1 | 2024-11-01 08:13:47.215+0000 INFO id: 8940A76F218A70ADEA1575BE68E5D5D6D84D8A18625A537FF8AC58203EBE9FB4 |
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
import os, requests, time, openai, json, logging | |
from pprint import pprint | |
from typing import Union, List | |
from fastapi import FastAPI | |
from pydantic import BaseModel | |
from sendblue import Sendblue | |
client = openai.Client(api_key="sk-proj-XXXX") |
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
Can you open mermaid.live and past this: | |
flowchart LR | |
subgraph Client | |
U[User] --> UI[User Interface] | |
end | |
subgraph Server | |
UI --> R[Routes] | |
R --> C[Controllers] |
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
# Dockerfile (for both Linux and Windows) | |
ARG DOCKER_OS=linux # Default OS (can be overridden during build) | |
FROM eclipse-temurin:21-jdk-jammy | |
WORKDIR /app | |
COPY .mvn/ .mvn | |
COPY mvnw pom.xml ./ |
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
import java.util.Scanner; | |
public class TemperatureConverter { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
int choice; | |
do { | |
displayMenu(); |
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
$ docker version | |
Client: | |
Cloud integration: v1.0.35+desktop.5 | |
Version: 24.0.7 | |
API version: 1.43 | |
Go version: go1.20.10 | |
Git commit: afdd53b | |
Built: Thu Oct 26 09:08:44 2023 | |
OS/Arch: windows/amd64 | |
Context: default |
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
services: | |
pull-model: | |
image: genai-stack/pull-model:latest | |
build: | |
context: . | |
dockerfile: pull_model.Dockerfile | |
environment: | |
- LLM=${LLM-gpt-3.5} | |
networks: |
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
version: '3' | |
services: | |
db: | |
image: mariadb | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: your_root_password | |
MYSQL_DATABASE: your_database_name | |
MYSQL_USER: your_username | |
MYSQL_PASSWORD: your_password |
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
services: | |
app: | |
image: node:18-alpine | |
command: sh -c "yarn install && yarn run dev" | |
ports: | |
- 3000:3000 | |
working_dir: /app | |
volumes: | |
- ./:/app | |
environment: |
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
spec: | |
template: | |
spec: | |
containers: | |
- name: my-container | |
image: my-image | |
env: | |
- name: VARIABLE1 | |
valueFrom: | |
configMapKeyRef: |
NewerOlder