A Pen by Jack Rugile on CodePen.
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
<artifacts_info> | |
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity. | |
# Good artifacts are... | |
- Substantial content (>15 lines) | |
- Content that the user is likely to modify, iterate on, or take ownership of | |
- Self-contained, complex content that can be understood on its own, without context from the conversation | |
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations) | |
- Content likely to be referenced or reused multiple times |
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 openai | |
import asyncio | |
from typing import Any | |
async def dispatch_openai_requests( | |
messages_list: list[list[dict[str,Any]]], | |
model: str, | |
temperature: float, | |
max_tokens: int, | |
top_p: float, |
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 re | |
import argparse | |
re_attention = re.compile(r""" | |
\\\(| | |
\\\)| | |
\\\[| | |
\\]| | |
\\\\| | |
\\| |
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
# CLIP Interrogator 2.2 by [@pharmapsychotic](https://twitter.com/pharmapsychotic) | |
# | |
# Want to figure out what a good prompt might be to create new images like an existing one? The CLIP Interrogator is here to get you answers! | |
# | |
# <br> | |
# | |
# For Stable Diffusion 1.X choose the **ViT-L** model and for Stable Diffusion 2.0+ choose the **ViT-H** CLIP Model. | |
# | |
# This version is specialized for producing nice prompts for use with Stable Diffusion and achieves higher alignment between generated text prompt and source image. You can try out the old [version 1](https://colab.research.google.com/github/pharmapsychotic/clip-interrogator/blob/v1/clip_interrogator.ipynb) to see how different CLIP models ranks terms. | |
# |
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
<div> | |
<a href="#"><span>Facebook</span></a> | |
<a href="#"><span>Twitter</span></a> | |
<a href="#"><span>Google+</span></a> | |
<a href="#"><span>Github</span></a> | |
<a href="#"><span>Dribbble</span></a> | |
<a href="#"><span>CodePen</span></a> | |
</div> |
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
/home/ayysir/.pm2/logs/soge-out.log last 15 lines: | |
0|soge | at Object.modify (/home/ayysir/soge/node_modules/nedb/lib/mod el.js:458:15) | |
0|soge | at /home/ayysir/soge/node_modules/nedb/lib/datastore.js:618:3 3 | |
0|soge | at /home/ayysir/soge/node_modules/nedb/lib/datastore.js:329:1 4 } reason: TypeError: Cannot set property '[object Array]' of null | |
0|soge | 2018-11-21T02:21:02.973 !!! ERROR !!! Possibly Unhandled Rejection at: Promise { | |
0|soge | <rejected> TypeError: Cannot set property '[object Array]' of nul l | |
0|soge | at Object.lastStepModifierFunctions.$set (/home/ayysir/soge/n ode_modules/nedb/lib/model.js:253:14) | |
0|soge | at Object.$set (/home/ayysir/soge/node_modules/nedb/lib/model .js:417:42) | |
0|soge | at Object.$set (/hom |
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
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'> | |
<link href='https://fontastic.s3.amazonaws.com/sEsaN6ZPMiVLUYDwwr6us4/icons.css' rel='stylesheet' type='text/css'> | |
-var sites = [ | |
- 'facebook', | |
- 'twitter', | |
- 'google', | |
- 'steam', |
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
<!-- you can also use html here, global filters and custom variables are also available --> | |
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> | |
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'> | |
<link href='https://fontastic.s3.amazonaws.com/sEsaN6ZPMiVLUYDwwr6us4/icons.css' rel='stylesheet' type='text/css'> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<ul class='social'> | |
<li> | |
<a class="fa fa-instagram" href="#"> |
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
2018-09-11T22:36:32.219 !!! ERROR !!! uncaughtException: listen EADDRINUSE :::20001 | |
Error: listen EADDRINUSE :::20001 | |
at Server.setupListenHandle [as _listen2] (net.js:1336:14) | |
at listenInCluster (net.js:1384:12) | |
at Server.listen (net.js:1471:7) | |
at Panel.listen (/home/ayysir/soge/src/bot/panel.js:292:15) | |
at expose (/home/ayysir/soge/src/bot/main.js:153:18) | |
at process._tickCallback (internal/process/next_tick.js:68:7) | |
2018-09-11T22:36:40.665 !!! ERROR !!! uncaughtException: listen EADDRINUSE :::20001 | |
Error: listen EADDRINUSE :::20001 |
NewerOlder