Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,15 @@ import numpy as np
|
|
9 |
import subprocess
|
10 |
import torch
|
11 |
import json
|
|
|
|
|
|
|
12 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
13 |
from PIL import Image
|
14 |
from deep_translator import GoogleTranslator
|
15 |
from datetime import datetime
|
16 |
from theme import theme
|
|
|
17 |
from fastapi import FastAPI
|
18 |
|
19 |
app = FastAPI()
|
|
|
9 |
import subprocess
|
10 |
import torch
|
11 |
import json
|
12 |
+
import uuid
|
13 |
+
import spaces
|
14 |
+
from typing import Tuple
|
15 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
16 |
from PIL import Image
|
17 |
from deep_translator import GoogleTranslator
|
18 |
from datetime import datetime
|
19 |
from theme import theme
|
20 |
+
from typing import Tuple
|
21 |
from fastapi import FastAPI
|
22 |
|
23 |
app = FastAPI()
|