Explore zero-shot image classification using CLIP embeddings already stored in the
artifacts llm collection (125 images), then build an interactive visualization
to explore the results.
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
| **** | |
| ** factor.asm -- factor 32 bit numbers | |
| **** | |
| AORG >0000 | |
| DATA WPA ; WP | |
| DATA START ; PC | |
| AORG >1000 ; workspaces | |
| WPA BSS >20 | |
| WPB BSS >20 |
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
| **** | |
| ** dullboy.asm -- runs on TMS9900 computer | |
| **** | |
| ** MMIO UART | |
| THRE EQU >F000 ; UART transmit empty | |
| THRL EQU >F002 ; UART transmit load | |
| ** Reset Vector | |
| AORG >0000 | |
| DATA >1000 |
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
| #!/usr/bin/env python3 | |
| """Create a TU56 DECtape image with place names for a game.""" | |
| import struct | |
| import sys | |
| # TC08 constants | |
| WORDS_PER_BLOCK = 129 | |
| DATA_WORDS_PER_BLOCK = 128 | |
| BLOCKS = 0o100 # 64 decimal blocks |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>How Soon Is Now? - Interactive Synth</title> | |
| <style> | |
| body { font-family: sans-serif; background-color: #282828; color: #e0e0e0; display: flex; flex-direction: column; align-items: center; } | |
| h1 { font-weight: 300; } | |
| #controls { background-color: #3c3c3c; border-radius: 8px; padding: 20px; margin: 20px; width: 350px; } | |
| .control-group { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } | |
| label { font-size: 1em; } |
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
| GtPlotterScatterFocusPointHandler subclass: #DexPointEventHandler | |
| instanceVariableNames: 'chart' | |
| classVariableNames: '' | |
| package: 'uncertain'! | |
| !DexPointEventHandler methodsFor: 'accessing' stamp: 'Dexter 7/18/2024 05:30'! | |
| chart: theChart | |
| chart := theChart! ! | |
| !DexPointEventHandler methodsFor: 'accessing' stamp: 'Dexter 7/18/2024 06:11'! |
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
| Object subclass: #AnthropicClaude | |
| instanceVariableNames: '' | |
| classVariableNames: 'ApplicationKey' | |
| package: 'LLM-AnthropicClaude'! | |
| !AnthropicClaude methodsFor: 'accessing' stamp: 'GlamorousAuthor 6/8/2024 12:25'! | |
| invoke: userPrompt system: systemPrompt | |
| | client payload response | | |
| payload := {#model -> 'claude-3-haiku-20240307'. | |
| #max_tokens -> 1536. |
Here's a plan to implement support for Anthropic's Claude:
-
Create a class named
AnthropicClaude:- This class will encapsulate the necessary functionality to interact with the Anthropic Claude API.
-
Store the API key and URL:
- The class should have private attributes to store the API key and the URL for the Anthropic Claude API.
- These values can be passed as arguments to the class constructor or set using setter methods.
-
Implement a method to invoke Claude with a prompt and a system prompt:
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
| 'From Pharo11.0.0 of 7 March 2024 [Build information: Pharo-11.0.0+build.726.sha.aece1b5473acf3830a0e082c1bc3a15d4ff3522b (64 Bit)] on 30 May 2024 at 5:33:50.506 pm'! | |
| Object subclass: #SpotList | |
| instanceVariableNames: 'rawData' | |
| classVariableNames: '' | |
| package: 'ParksOnTheAir'! | |
| !SpotList methodsFor: 'accessing' stamp: 'dexter 5/29/2024 15:39'! | |
| rawData: spots | |
| rawData := spots! ! |
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
| !Collection methodsFor: 'statistics' stamp: 'rsbohn 5/24/2024 13:45:07'! | |
| argmax | |
| "Returns the index of the maximum value in the given collection." | |
| | maxIndex maxValue | | |
| maxIndex := 1. | |
| maxValue := self at: 1. | |
| 2 to: self size do: [:i | | |
| (self at: i) > maxValue ifTrue: [ | |
| maxIndex := i. | |
| maxValue := self at: i. |
NewerOlder