Spaces:
Running
Running
altawil
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
import uuid
|
4 |
import base64
|
5 |
import cv2
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
# # استيراد من ملفاتنا المحلية
|
16 |
# from model_definition import InterfuserModel, load_and_prepare_model, create_model_config
|
|
|
3 |
import uuid
|
4 |
import base64
|
5 |
import cv2
|
6 |
+
import torch
|
7 |
+
import numpy as np
|
8 |
+
from fastapi import FastAPI, HTTPException
|
9 |
+
from fastapi.responses import HTMLResponse
|
10 |
+
from pydantic import BaseModel
|
11 |
+
from torchvision import transforms
|
12 |
+
from typing import List, Dict, Any, Optional
|
13 |
+
import logging
|
14 |
|
15 |
# # استيراد من ملفاتنا المحلية
|
16 |
# from model_definition import InterfuserModel, load_and_prepare_model, create_model_config
|