Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ chat = Conversation()
|
|
24 |
t2a = T2A()
|
25 |
vlm = VLM()
|
26 |
ic = ImageCaption()
|
27 |
-
|
28 |
|
29 |
def remove_labels_with_regex(text: str):
|
30 |
pattern = r'^(Human:|AI:|Chelsea:)\s*'
|
@@ -95,8 +95,10 @@ def speaking(text):
|
|
95 |
def main():
|
96 |
text = get_text()
|
97 |
print(f"Print text: s{text}s")
|
98 |
-
|
99 |
-
|
|
|
|
|
100 |
speaking(text)
|
101 |
print(f"Checking for execution main func {random.randint(0, 10)}")
|
102 |
|
|
|
24 |
t2a = T2A()
|
25 |
vlm = VLM()
|
26 |
ic = ImageCaption()
|
27 |
+
text_dict = {}
|
28 |
|
29 |
def remove_labels_with_regex(text: str):
|
30 |
pattern = r'^(Human:|AI:|Chelsea:)\s*'
|
|
|
95 |
def main():
|
96 |
text = get_text()
|
97 |
print(f"Print text: s{text}s")
|
98 |
+
if text:
|
99 |
+
text_dict['text'] = text
|
100 |
+
|
101 |
+
print(f"Text dict: {text_dict}")
|
102 |
speaking(text)
|
103 |
print(f"Checking for execution main func {random.randint(0, 10)}")
|
104 |
|