Joao Henrique
commited on
Commit
·
9fc7d2b
1
Parent(s):
4df47de
....
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ from gears import load_tensor, calc_preds
|
|
3 |
|
4 |
coeffs = load_tensor()
|
5 |
|
|
|
6 |
examples = [
|
7 |
"""
|
8 |
-0.260648; -0.469648; 2.496266; -0.083724; 0.129681; 0.732898; 0.519014; -0.130006; 0.727159;
|
@@ -36,6 +37,9 @@ examples = [
|
|
36 |
ans_examples = [0,0,1,1]
|
37 |
|
38 |
# 0, 1, 541, 623
|
|
|
|
|
|
|
39 |
|
40 |
def predict(indeps):
|
41 |
indeps = list(map(float,indeps.split(';')))
|
@@ -51,7 +55,6 @@ gr.Interface(
|
|
51 |
fn=predict,
|
52 |
inputs=gr.components.Textbox,
|
53 |
outputs=gr.components.Textbox,
|
54 |
-
examples=examples
|
55 |
).launch(share=False)
|
56 |
|
57 |
|
|
|
3 |
|
4 |
coeffs = load_tensor()
|
5 |
|
6 |
+
'''
|
7 |
examples = [
|
8 |
"""
|
9 |
-0.260648; -0.469648; 2.496266; -0.083724; 0.129681; 0.732898; 0.519014; -0.130006; 0.727159;
|
|
|
37 |
ans_examples = [0,0,1,1]
|
38 |
|
39 |
# 0, 1, 541, 623
|
40 |
+
'''
|
41 |
+
|
42 |
+
|
43 |
|
44 |
def predict(indeps):
|
45 |
indeps = list(map(float,indeps.split(';')))
|
|
|
55 |
fn=predict,
|
56 |
inputs=gr.components.Textbox,
|
57 |
outputs=gr.components.Textbox,
|
|
|
58 |
).launch(share=False)
|
59 |
|
60 |
|