Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
import tensorflow as tf
|
2 |
-
from tensorflow.keras.models import load_model
|
3 |
from pydantic import BaseModel
|
4 |
from typing import List
|
5 |
from fastapi import FastAPI
|
6 |
import numpy as np
|
7 |
import requests
|
8 |
from fastapi.middleware.cors import CORSMiddleware
|
|
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
model = load_model('models/big5_gru.h5')
|
|
|
1 |
import tensorflow as tf
|
|
|
2 |
from pydantic import BaseModel
|
3 |
from typing import List
|
4 |
from fastapi import FastAPI
|
5 |
import numpy as np
|
6 |
import requests
|
7 |
from fastapi.middleware.cors import CORSMiddleware
|
8 |
+
import pandas as pd
|
9 |
+
from sklearn.preprocessing import MinMaxScaler
|
10 |
+
from sklearn.cluster import KMeans
|
11 |
+
from keras.models import load_model
|
12 |
|
13 |
|
14 |
model = load_model('models/big5_gru.h5')
|