- django url shortener - Google Search
- How to Build and Deploy a Django-based URL Shortener App from Scratch | Docker
- django-link-shortener · PyPI
- New Tab
- how to generate short urls - Google Search
- [how to generate short urls stackoverflow - Google Search](https://www.google.com/search?q=how+to+generate+short+urls+stackoverflow&sxsrf=AB5stB
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 'package:http/http.dart' as http; | |
import 'dart:convert'; | |
main() async { | |
var request = http.MultipartRequest( | |
'POST', | |
Uri.parse('https://api.gooey.ai/v3/Lipsync/async/form/'), | |
); | |
request.headers['Authorization'] = 'bearer sk-hhm...POJ'; | |
request.files.add(http.MultipartFile.fromBytes('input_face', [])); |
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 babel.numbers import format_currency | |
# from gooeysite import wsgi | |
# | |
# assert wsgi | |
# import streamlit as gui | |
import plotly.graph_objects as go | |
import pandas as pd |
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 python | |
RUN pip install --no-cache-dir furl requests loguru | |
RUN curl -so main.py 'https://gist.githubusercontent.com/devxpy/2abbe49fa2acb6958eb4d828f50c4467/raw/db60e263a7e345bae31869f5e037f1f87bc54b6b/main.py' | |
CMD ["python", "main.py"] |
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
let response = await fetch("https://api.gooey.ai/v3/integrations/stream/", { | |
method: "POST", | |
headers: { | |
"Content-Type": "application/json", | |
}, | |
body: JSON.stringify({ | |
// your integration's ID as shown in the Gooey.AI Integrations tab | |
"integration_id": "DEy", | |
// the input text for the bot | |
"input_prompt": "Hello, world!", |
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
|MODEL |TEM4A0C37S31SB |TEM4A0C42S41SB |TEM4A0C48S41SB |TEM4A0C60S51SB| | |
|--|--|--|--|--| | |
|RATED VOLTS/PH/HZ |208-230/1/60 | | || | |
|RATINGS(a) |See O.D. Specifications | | || | |
|INDOOR COIL - Type |Plate Fin | | || | |
|Rows - F.P.I. |3 - 14 |3 - 14 |3 - 14 |4 - 14| | |
|Face Area (sq. ft.) |5.50 |5.50 |5.50 |5.91| | |
|Tube Size (in.) |3/8 | | || | |
|Refrigerant Control |TXV | | || | |
|Drain Conn. Size (in. )(b) |3/4 NPT | | || |
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
def reposition_object_img_bytes( | |
*, | |
img_bytes: bytes, | |
mask_bytes: bytes, | |
out_size: (int, int) = (512, 512), | |
out_obj_scale: float = 0.2, | |
out_pos_x: float = 4 / 9, | |
out_pos_y: float = 3 / 9, | |
) -> (bytes, bytes): | |
image_cv2 = bytes_to_cv2_img(img_bytes) |
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 llama_index import ( | |
VectorStoreIndex, | |
SimpleWebPageReader, | |
set_global_service_context, | |
ServiceContext, | |
) | |
from llama_index.callbacks import CallbackManager, TokenCountingHandler | |
from llama_index.chat_engine.types import ChatMode | |
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
[('https://assets.interplaylearning.com/videos/learning_path/1530282924685_ACDiagnostics3.mp4', | |
3), | |
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687286505745_0_IntroWhatisHVACRev.mp4', | |
2), | |
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687286573158_1_HVACoverviewRev.mp4', | |
2), | |
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687286713437_2_HVACsystemsRev.mp4', | |
2), | |
('https://s3-us-west-1.amazonaws.com/assets.interplay-learning.com/videos/learning_path/1687293233864_3_SystemComponentsRev.mp4', | |
2), |
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 torch | |
from PIL import Image | |
from diffusers import StableDiffusionPipeline, StableDiffusionControlNetImg2ImgPipeline, ControlNetModel, DDIMScheduler | |
from diffusers.utils import load_image | |
controlnet = ControlNetModel.from_pretrained("DionTimmer/controlnet_qrcode-control_v11p_sd21", | |
torch_dtype=torch.float16) | |
model_id = "stabilityai/stable-diffusion-2-1" | |
pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained( |
NewerOlder