meg HF staff commited on
Commit
21af2ca
1 Parent(s): 35e6b80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,10 +6,10 @@ from sklearn.feature_extraction.text import TfidfVectorizer
6
 
7
  from datasets import load_dataset
8
 
9
- dataset = load_dataset("HuggingFaceFW/fineweb")
10
 
11
  def greet(name):
12
- print(dataset)
13
  return "Hello " + name + "!!"
14
 
15
  app = gr.Interface(fn=greet, inputs="text", outputs="text")
 
6
 
7
  from datasets import load_dataset
8
 
9
+ text_dataset = load_dataset("HuggingFaceFW/fineweb", name="sample-10BT", split="train", streaming=True, column_names=['text'])
10
 
11
  def greet(name):
12
+ print(text_dataset)
13
  return "Hello " + name + "!!"
14
 
15
  app = gr.Interface(fn=greet, inputs="text", outputs="text")