docker-compose -p dcm4chee up -d
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
Today you will be writing instructions to an eager, helpful, but inexperienced and unworldly AI assistant who needs careful instruction and examples to understand how best to behave. I will explain a task to you. You will write instructions that will direct the assistant on how best to accomplish the task consistently, accurately, and correctly. Here are some examples of tasks and instructions. | |
<Task Instruction Example> | |
<Task> | |
Act as a polite customer success agent for Acme Dynamics. Use FAQ to answer questions. | |
</Task> | |
<Inputs> | |
{$FAQ} | |
{$QUESTION} | |
</Inputs> |
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
from pynetdicom import AE, evt, AllStoragePresentationContexts, debug_logger | |
from pydicom.uid import generate_uid | |
debug_logger() | |
def sendBackToStore(ds): | |
ae2 = AE(ae_title=b'ORTHANC') | |
ae2.add_requested_context('1.2.840.10008.5.1.4.1.1.2', ['1.2.840.10008.1.2']) # CT Image Storage - Implicit VR Endian: Default Transfer Syntax for DICOM | |
ae2.add_requested_context('1.2.840.10008.5.1.4.1.1.7', ['1.2.840.10008.1.2']) # Secondary Capture Image Storage | |
ae2.add_requested_context('1.2.840.10008.1.1') # Verification SOP Class |
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
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 |
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 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
from qdrant_client import QdrantClient | |
from qdrant_client.models import Distance, VectorParams | |
import numpy as np | |
from sentence_transformers import SentenceTransformer | |
from qdrant_client.models import PointStruct | |
# Initialize the client | |
client = QdrantClient("localhost:6333") | |
COLLECTION_NAME = "docs" |
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
npx vite build --outDir build | |
find ./build/assets -name "*.js" -print0 | while read -d $'\0' file | |
do | |
curl https://api.honeybadger.io/v1/source_maps \ | |
-F api_key=$VITE_HONEYBADGER \ | |
-F minified_url=$VITE_APP_BUILD/$(echo $file | sed -e 's/\.\/build\///g') \ | |
-F source_map=@$file.map \ | |
-F minified_file=@$file \; | |
# echo "$VITE_APP_ENDPOINT/$file" | sed -e 's/\.\/build\///g' | |
done |
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 'dart:ffi'; | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
import 'package:camera/camera.dart'; | |
import 'package:tflite/tflite.dart'; | |
List<CameraDescription> cameras = []; | |
void main() async { |
NewerOlder