| import gradio as gr | |
| import tensorflow as tf | |
| import numpy as np | |
| import os | |
| os.environ['CURL_CA_BUNDLE'] = '' | |
| from huggingface_hub import from_pretrained_fastai | |
| model = from_pretrained_fastai("Alesteba/deep_model_08") | |
| def predict(prompt): | |
| return model.predict(prompt)[0] | |
| gr.Interface(fn=predict, inputs="text", outputs="text").launch() |