chap0lin commited on
Commit
8b69ba9
1 Parent(s): ccaa6ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import pandas as pd
3
 
4
- def greet(name):
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(fn=greet, inputs="text", outputs="file")
 
 
 
 
 
 
 
 
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()