flagging / app.py
Abubakar Abid
Update app.py
aab7fc6
raw
history blame
531 Bytes
#### ignore these lines
import os
os.system("pip uninstall -y gradio")
os.system("pip install gradio==2.5.8a0")
### -------------------------
import gradio as gr
HF_TOKEN = os.getenv('HF_TOKEN')
description = "Translate something from English to German. Flag to add to this dataset: https://huggingface.co/datasets/abidlabs/test-translation-dataset."
hf_saver = gr.HuggingFaceDatasetSaver(HF_TOKEN, "test-translation-dataset")
gr.Interface.load("huggingface/t5-base", flagging_callback=hf_saver, description=description).launch()