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 files12344567import gradio as grfrom huggingface_hub import InferenceClient
client = InferenceClient("BillyAggarwal/NeuralStyleTransfer")client = InferenceClient("BillyAggarwal/NeuralStyleTrasnferModel.keras")
def style_transfer(content_image, style_image): # send images to Hugging Face modelgradioapp+1-1