Spaces:
Runtime error
Runtime error
masa729406
commited on
Commit
·
3b5e4a1
1
Parent(s):
f3a531f
Update app.py
Browse files
app.py
CHANGED
@@ -1,22 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
if operation == "
|
5 |
-
return イワシの値段
|
6 |
-
|
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 |
-
|
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",
|