Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
4 |
-
def
|
5 |
boxes = {'Color': ['Green','Green','Green','Blue','Blue','Red','Red','Red'],
|
6 |
'Shape': ['Rectangle','Rectangle','Square','Rectangle','Square','Square','Square','Rectangle'],
|
7 |
'Price': [10,15,5,5,10,15,15,5]
|
@@ -11,5 +11,13 @@ def greet(name):
|
|
11 |
|
12 |
return "output.xlsx"
|
13 |
|
14 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import pandas as pd
|
3 |
|
4 |
+
def app(operacao, resultado, dados):
|
5 |
boxes = {'Color': ['Green','Green','Green','Blue','Blue','Red','Red','Red'],
|
6 |
'Shape': ['Rectangle','Rectangle','Square','Rectangle','Square','Square','Square','Rectangle'],
|
7 |
'Price': [10,15,5,5,10,15,15,5]
|
|
|
11 |
|
12 |
return "output.xlsx"
|
13 |
|
14 |
+
iface = gr.Interface(
|
15 |
+
fn=app,
|
16 |
+
inputs=[
|
17 |
+
gr.Radio(["Pré-processamento + Classificação", "Apenas Pré-processamento", "Apenas Classificação"]),
|
18 |
+
gr.Radio(["Nova Coluna", "Filtrar planilha"]),
|
19 |
+
"file"
|
20 |
+
],
|
21 |
+
outputs="file"
|
22 |
+
)
|
23 |
iface.launch()
|