Spaces:
Runtime error
Runtime error
Rudra Shailendra Nanivadekar
commited on
Commit
·
5bc86f7
1
Parent(s):
d6defa6
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ from datasets import load_dataset
|
|
2 |
import gradio as gr
|
3 |
dataset = load_dataset("orange6996/autotrain-data-testtextexists", use_auth_token=True)
|
4 |
def greet(name):
|
5 |
-
|
|
|
6 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch()
|
|
|
2 |
import gradio as gr
|
3 |
dataset = load_dataset("orange6996/autotrain-data-testtextexists", use_auth_token=True)
|
4 |
def greet(name):
|
5 |
+
name = dataset.Text()
|
6 |
+
return dataset.Score()
|
7 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
8 |
iface.launch()
|