cahya commited on
Commit
a6b45d1
1 Parent(s): 634e006

fixed elif, otherwise it could execute both example_1/example_2 and input_text

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- if example_2:
40
  output("Who are the president?")
41
- if input_text:
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("")