CineAI commited on
Commit
c8abf3f
1 Parent(s): 66a2c12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -24,7 +24,7 @@ chat = Conversation()
24
  t2a = T2A()
25
  vlm = VLM()
26
  ic = ImageCaption()
27
- layer_text = ""
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
- layer_text = text
99
- print(f"Print text: s{layer_text}s")
 
 
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