Adieva-15 commited on
Commit
80aab33
·
1 Parent(s): d35b85a
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -1,17 +1,18 @@
1
  import gradio as gr
2
  from function import go
3
 
 
 
 
 
 
4
  def predict(house, rock, attr):
5
- result = go(house, rock, attr)
6
  if result == 1:
7
  return "Ты мне нравишься 💖"
8
  else:
9
  return "Созвонимся 📞"
10
 
11
- house = 1
12
- rock = 0
13
- attr = 1
14
-
15
  demo = gr.Interface(fn=predict,
16
  inputs=[gr.Number(label="house", value=1),
17
  gr.Number(label="rock", value=0),
 
1
  import gradio as gr
2
  from function import go
3
 
4
+
5
+ h = 1
6
+ r = 0
7
+ a = 1
8
+
9
  def predict(house, rock, attr):
10
+ result = go(h, r, a)
11
  if result == 1:
12
  return "Ты мне нравишься 💖"
13
  else:
14
  return "Созвонимся 📞"
15
 
 
 
 
 
16
  demo = gr.Interface(fn=predict,
17
  inputs=[gr.Number(label="house", value=1),
18
  gr.Number(label="rock", value=0),