import gradio as gr from huggingface_hub import from_pretrained_fastai from fastai.vision.all import * repo_id = "Tinsae/EthioFoodtest3" learn = from_pretrained_fastai(repo_id) labels = learn.dls.vocab EXAMPLES_PATH = Path('./examples') title = "Ethiopian Foods " description = """ The bot was trained to answer questions based on Rick and Morty dialogues. Ask Rick anything! """ article = "Check out [the original Rick and Morty Bot](https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot) that this demo is based off of." examples = [f'{EXAMPLES_PATH}/{f.name}' for f in EXAMPLES_PATH.iterdir()] labels = learn.dls.vocab v ='''