Spaces:
Runtime error
Runtime error
Create new file
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import from_pretrained_keras
|
| 2 |
+
import gradio as gr
|
| 3 |
+
import tensorflow as tf
|
| 4 |
+
import numpy as np
|
| 5 |
+
import os
|
| 6 |
+
|
| 7 |
+
model= tf.keras.models.load_model(os.path.join(path, "tf_model.h5"))
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
inputs = gr.inputs.Image()
|
| 11 |
+
outputs = gr.outputs.Image()
|
| 12 |
+
|
| 13 |
+
def predict(image_input):
|
| 14 |
+
pass
|
| 15 |
+
|
| 16 |
+
|