BrendaniSpeech's picture
Update app.py
b398ca1
raw
history blame contribute delete
532 Bytes
import gradio as gr
import os
HF_TOKEN = os.getenv("HF_API_TOKEN")
hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "text-classification-demo-flags")
description = "Estimate skill level"
title = "Enter words below"
examples = [["Adventurer is approached by a mysterious stranger in the tavern for a new quest."]]
interface = gr.Interface.load("huggingface/BrendaniSpeech/bert-finetuned-20220913_v1",
description=description,
examples=examples,
flagging_callback=hf_writer
)
interface.launch()