Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ from sklearn.feature_extraction.text import TfidfVectorizer
|
|
6 |
|
7 |
from datasets import load_dataset
|
8 |
|
9 |
-
|
10 |
|
11 |
def greet(name):
|
12 |
-
print(
|
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")
|