Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
vec3 hsv(float h, float s, float v) { | |
vec3 c = vec3(h * 6.0, s, v); | |
vec3 step = vec3(5.0, 3.0, 1.0); | |
vec3 rgb = clamp(abs(mod(c.x + step, 6.0) - 3.0) - 1.0, 0.0, 1.0); | |
rgb = rgb * rgb * (3.0 - 2.0 * rgb); | |
return v * mix(vec3(1.0), rgb, s); | |
} | |
void mainImage(out vec4 fragColor, in vec2 FC) | |
{ |
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 vertexai.language_models as v | |
import jax.numpy as jnp | |
import jax.numpy.linalg as jl | |
model = v.TextEmbeddingModel.from_pretrained( | |
"textembedding-gecko" | |
) | |
sentiment_checks = [ | |
"This is very good. I loved it! Thanks", |
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 'package:flutter/material.dart'; | |
import 'dart:math' as Math; | |
import 'dart:async'; | |
import 'dart:ui'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { |