ofermend commited on
Commit
46f57c1
1 Parent(s): d032a15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -5,8 +5,10 @@ import os
5
  import streamlit as st
6
  from PIL import Image
7
 
8
- def isTrue(s: str) -> bool:
9
- return s.strip().lower() == 'true'
 
 
10
 
11
  def launch_bot():
12
  def generate_response(question):
 
5
  import streamlit as st
6
  from PIL import Image
7
 
8
+ def isTrue(x) -> bool:
9
+ if isinstance(x, bool):
10
+ return s
11
+ return x.strip().lower() == 'true'
12
 
13
  def launch_bot():
14
  def generate_response(question):