Instructions to use BillyAggarwal/NeuralStyleTransfer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use BillyAggarwal/NeuralStyleTransfer with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://BillyAggarwal/NeuralStyleTransfer") - Notebooks
- Google Colab
- Kaggle
Update gradioapp
Browse files1234567import gradio as grfrom huggingface_hub import InferenceClientclient = InferenceClient("BillyAggarwal/NeuralStyleTransfer")def style_transfer(content_image, style_image):# send images to Hugging Face model1234567import gradio as grfrom huggingface_hub import InferenceClientclient = InferenceClient("BillyAggarwal/NeuralStyleTrasnferModel.keras")def style_transfer(content_image, style_image):# send images to Hugging Face model
gradioapp+1-1