Skip to content

Commit 168ae0b

Browse files
committed
deps
1 parent 03d2ca6 commit 168ae0b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

02_chatbot/ws_streaming.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,5 @@ async def ws(msg:str, send):
7070
await send(Span(chunk, id=f"chat-content-{len(messages)-1}", hx_swap_oob="beforeend"))
7171
await asyncio.sleep(0.5) # Simulate a delay
7272

73-
if __name__ == '__main__': uvicorn.run("ws_streaming:app", host='0.0.0.0', port=8000, reload=True)
73+
serve()
74+

h2f/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
python-fasthtml>=0.2.3
1+
python-fasthtml>=0.4.5
22

0 commit comments

Comments
 (0)