Watch the breakdown here in a Q4 2024 prompt engineering update video
- Quick, natural language prompts for rapid prototyping
- Perfect for exploring model capabilities and behaviors
Watch the breakdown here in a Q4 2024 prompt engineering update video
from openai import OpenAI | |
client = OpenAI(api_key="API_KEY_HERE") | |
def query_gpt(prompt): | |
""" | |
This function queries OpenAI's GPT model for a response to a given prompt. | |
Parameters: |
Agnes en_US # Isn't it nice to have a computer that will talk to you? | |
Albert en_US # I have a frog in my throat. No, I mean a real frog! | |
Alex en_US # Most people recognize me by my voice. | |
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana. | |
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst. | |
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne. | |
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme. | |
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train. | |
Bahh en_US # Do not pull the wool over my eyes. | |
Bells en_US # Time flies when you are having fun. |
"explorer.experimental.fileNesting.enabled": true, | |
"explorer.experimental.fileNesting.expand": false, | |
"explorer.experimental.fileNesting.patterns": { | |
"pubspec.yaml": ".flutter-plugins, .packages, .dart_tool, .flutter-plugins-dependencies, .metadata, .packages, pubspec.lock, build.yaml, analysis_options.yaml, all_lint_rules.yaml", | |
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*", | |
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md", | |
"*.dart": "$(capture).g.dart, $(capture).freezed.dart", | |
}, |
/* | |
SliverPersistentHeader( | |
pinned: true, | |
floating: true, | |
delegate: OurDelegate( | |
toolBarHeight: MediaQuery.of(context).padding.top, | |
openHeight: 250, | |
closedHeight: 40, | |
), | |
), |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
class FlippingSwitch extends StatefulWidget { | |
const FlippingSwitch( | |
{required this.color, | |
required this.backgroundColor, | |
required this.firstLabel, | |
required this.secondLabel, |
// MIT License | |
// | |
// Copyright (c) 2020 Simon Lightfoot | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: |
import re | |
from argparse import ArgumentParser | |
LINE_PATTERN = re.compile(r'"(.+)"\s*=\s*"(.+)"$') | |
def _parse_args(): | |
parser = ArgumentParser(description='Reverse titles for frameit RTL') | |
parser.add_argument('--before', action='store', type=str, default='title.strings.before') | |
parser.add_argument('--output', action='store', type=str, default='title.strings') |
FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.
Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:
ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4
Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.