Spaces:
Sleeping
Sleeping
Update app.py
Browse files12345678910111213141516import osos.system('pip install tensorflow')import gradio as grfrom torchvision import transformsimport tensorflow as tfimport tensorflow_hub as hubfrom tensorflow.keras.layers import Input, Dense, Dropout, GlobalAveragePooling2Dfrom tensorflow.keras.models import Model, Sequentialfrom tensorflow.keras.optimizers import Adamfrom tensorflow.keras.preprocessing import imagefrom tensorflow.keras.applications.vgg16 import preprocess_inputfrom transformers import TFAutoModelForSequenceClassificationmodel_pb_path = "./4-15_ViT-B16_Lung3_v1/"1234567891011121314151617181920212223import osos.system('pip install tf_keras')import gradio as grfrom torchvision import transformsimport tensorflow as tfimport tensorflow_hub as hubfrom tf_keras.layers import Input, Dense, Dropout, GlobalAveragePooling2Dfrom tf_keras.models import Model, Sequentialfrom tf_keras.optimizers import Adamfrom tf_keras.preprocessing import imagefrom tf_keras.applications.vgg16 import preprocess_input# from tensorflow.keras.layers import Input, Dense, Dropout, GlobalAveragePooling2D# from tensorflow.keras.models import Model, Sequential# from tensorflow.keras.optimizers import Adam# from tensorflow.keras.preprocessing import image# from tensorflow.keras.applications.vgg16 import preprocess_inputfrom transformers import TFAutoModelForSequenceClassificationmodel_pb_path = "./4-15_ViT-B16_Lung3_v1/"
app.py+13-6