Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ from transformers import MarianMTModel, MarianTokenizer
|
|
14 |
# Newly added below
|
15 |
from fastapi import FastAPI, File, UploadFile, Body, Depends, HTTPException
|
16 |
from fastapi.security.api_key import APIKeyHeader
|
|
|
17 |
from fastapi.encoders import jsonable_encoder
|
18 |
|
19 |
API_KEY = os.environ.get("API_KEY")
|
|
|
14 |
# Newly added below
|
15 |
from fastapi import FastAPI, File, UploadFile, Body, Depends, HTTPException
|
16 |
from fastapi.security.api_key import APIKeyHeader
|
17 |
+
from typing import Optional
|
18 |
from fastapi.encoders import jsonable_encoder
|
19 |
|
20 |
API_KEY = os.environ.get("API_KEY")
|