Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,6 @@ from fastapi.responses import JSONResponse, HTMLResponse
|
|
| 4 |
from fastapi.middleware.cors import CORSMiddleware
|
| 5 |
from pydantic import BaseModel
|
| 6 |
from typing import Optional, Dict, Any
|
| 7 |
-
import streamlit as st
|
| 8 |
import numpy as np
|
| 9 |
import pandas as pd
|
| 10 |
import math
|
|
@@ -13,10 +12,6 @@ from PIL import Image as PILImage
|
|
| 13 |
import io
|
| 14 |
import base64
|
| 15 |
|
| 16 |
-
# Clear the cache at the start of the app
|
| 17 |
-
st.cache_data.clear()
|
| 18 |
-
st.cache_resource.clear()
|
| 19 |
-
|
| 20 |
# Define the Mish activation function (essential for the model)
|
| 21 |
class Mish(tf.keras.layers.Layer):
|
| 22 |
def __init__(self, **kwargs):
|
|
|
|
| 4 |
from fastapi.middleware.cors import CORSMiddleware
|
| 5 |
from pydantic import BaseModel
|
| 6 |
from typing import Optional, Dict, Any
|
|
|
|
| 7 |
import numpy as np
|
| 8 |
import pandas as pd
|
| 9 |
import math
|
|
|
|
| 12 |
import io
|
| 13 |
import base64
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# Define the Mish activation function (essential for the model)
|
| 16 |
class Mish(tf.keras.layers.Layer):
|
| 17 |
def __init__(self, **kwargs):
|