meg's picture
meg HF staff
Update app.py
21af2ca verified
raw
history blame
444 Bytes
import gradio as gr
import json
import numpy as np
import pandas as pd
from sklearn.feature_extraction.text import TfidfVectorizer
from datasets import load_dataset
text_dataset = load_dataset("HuggingFaceFW/fineweb", name="sample-10BT", split="train", streaming=True, column_names=['text'])
def greet(name):
print(text_dataset)
return "Hello " + name + "!!"
app = gr.Interface(fn=greet, inputs="text", outputs="text")
app.launch()