Spaces:
Runtime error
Runtime error
fixed elif, otherwise it could execute both example_1/example_2 and input_text
Browse files
app.py
CHANGED
|
@@ -36,9 +36,9 @@ def output(input_text):
|
|
| 36 |
|
| 37 |
if example_1:
|
| 38 |
output("Speed of light is fastest then speed of sound")
|
| 39 |
-
|
| 40 |
output("Who are the president?")
|
| 41 |
-
|
| 42 |
output(input_text)
|
| 43 |
|
| 44 |
st.subheader("")
|
|
|
|
| 36 |
|
| 37 |
if example_1:
|
| 38 |
output("Speed of light is fastest then speed of sound")
|
| 39 |
+
elif example_2:
|
| 40 |
output("Who are the president?")
|
| 41 |
+
elif input_text:
|
| 42 |
output(input_text)
|
| 43 |
|
| 44 |
st.subheader("")
|