Spaces:
Running
Running
Devamsingh09 Cursor commited on
Commit ·
b7eb2c9
1
Parent(s): 4ac17f1
Fix missing Optional import and upgrade HF Docker to Python 3.11.
Browse files- Dockerfile +1 -1
- main.py +1 -0
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
|
| 3 |
RUN useradd -m -u 1000 user
|
| 4 |
USER user
|
main.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from contextlib import asynccontextmanager
|
|
|
|
| 2 |
|
| 3 |
from fastapi import FastAPI, HTTPException
|
| 4 |
from fastapi.responses import StreamingResponse, Response
|
|
|
|
| 1 |
from contextlib import asynccontextmanager
|
| 2 |
+
from typing import Optional
|
| 3 |
|
| 4 |
from fastapi import FastAPI, HTTPException
|
| 5 |
from fastapi.responses import StreamingResponse, Response
|