Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,10 @@ import os
|
|
5 |
import streamlit as st
|
6 |
from PIL import Image
|
7 |
|
8 |
-
def isTrue(
|
9 |
-
|
|
|
|
|
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):
|