Skip to content

Instantly share code, notes, and snippets.

View shancw96's full-sized avatar
🎯
focusing

ShanCW shancw96

🎯
focusing
  • china/suzhou
View GitHub Profile
@shancw96
shancw96 / main.py
Created June 1, 2023 15:02 — forked from ninely/main.py
Langchain with fastapi stream example
"""This is an example of how to use async langchain with fastapi and return a streaming response.
The latest version of Langchain has improved its compatibility with asynchronous FastAPI,
making it easier to implement streaming functionality in your applications.
"""
import asyncio
import os
from typing import AsyncIterable, Awaitable
import uvicorn
from dotenv import load_dotenv
@shancw96
shancw96 / css-wave-animation-with-a-png.markdown
Created August 1, 2019 09:06
CSS Wave Animation with a .png