Spaces:
No application file
No application file
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 | |
dataset = load_dataset("HuggingFaceFW/fineweb") | |
def greet(name): | |
print(dataset) | |
return "Hello " + name + "!!" | |
app = gr.Interface(fn=greet, inputs="text", outputs="text") | |
app.launch() | |