masa729406 commited on
Commit
3b5e4a1
·
1 Parent(s): f3a531f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -15
app.py CHANGED
@@ -1,22 +1,12 @@
1
  import gradio as gr
2
 
3
- def calculator(イワシの値段, operation, num2):
4
- if operation == "add":
5
- return イワシの値段 + num2
6
- elif operation == "subtract":
7
- return イワシの値段 - num2
8
- elif operation == "multiply":
9
- return イワシの値段 * num2
10
- elif operation == "divide":
11
- if num2 == 0:
12
- raise gr.Error("Cannot divide by zero!")
13
- return イワシの値段 / num2
14
-
15
  demo = gr.Interface(
16
- calculator,
17
  [
18
- "number",
19
- gr.Radio(["add", "subtract", "multiply", "divide"]),
20
  "number"
21
  ],
22
  "number",
 
1
  import gradio as gr
2
 
3
+ def prediction_audience(イワシの値段):
4
+ if operation == "prediction":
5
+ return イワシの値段 * 1000
6
+
 
 
 
 
 
 
 
 
7
  demo = gr.Interface(
8
+ prediction_audience,
9
  [
 
 
10
  "number"
11
  ],
12
  "number",