Spaces:
No application file
No application file
meg-huggingface
commited on
Commit
•
0b7b04f
1
Parent(s):
0125fff
requirements.txt
Browse files- app.py +11 -2
- requirements.txt +0 -0
app.py
CHANGED
@@ -1,7 +1,16 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
|
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
1 |
import gradio as gr
|
2 |
+
import json
|
3 |
+
import numpy as np
|
4 |
+
import pandas as pd
|
5 |
+
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")
|
16 |
+
app.launch()
|
requirements.txt
ADDED
File without changes
|