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, columns=['text']) def greet(name): print(text_dataset) return "Hello " + name + "!!" app = gr.Interface(fn=greet, inputs="text", outputs="text") app.launch()