Spaces:
Runtime error
Runtime error
File size: 474 Bytes
de57172 33fa952 de57172 33fa952 e446a8b 33fa952 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
import tensorflow as tf
# Load your model
model = tf.keras.models.load_model("https://huggingface.co/GiladtheFixer/Text-Classifiy/resolve/main/my_model.h5")
# Define your input and output components
input_component = gr.Textbox()
output_component = gr.Textbox()
# Define your Gradio interface
interface = gr.Interface(
fn=model,
inputs=input_component,
outputs=output_component,
live=True,
)
# Launch the interface
interface.launch() |