awacke1 commited on
Commit
2354d1a
1 Parent(s): 1f2f99c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -98,14 +98,14 @@ classifier = pipeline("text-classification")
98
  def speech_to_text(speech):
99
  text = asr(speech)["text"]
100
 
101
- rMem = AIMemory("STT", text)
102
 
103
  return text
104
 
105
  def text_to_sentiment(text):
106
  sentiment = classifier(text)[0]["label"]
107
 
108
- rMem = AIMemory(text, sentiment)
109
 
110
  return sentiment
111
 
@@ -116,7 +116,7 @@ def upsert(text):
116
  saved = select('TTS-STT', date_time)
117
  # check it here: https://console.firebase.google.com/u/0/project/clinical-nlp-b9117/firestore/data/~2FStreamlitSpaces
118
 
119
- rMem = AIMemory(text, saved)
120
 
121
  return saved
122
 
 
98
  def speech_to_text(speech):
99
  text = asr(speech)["text"]
100
 
101
+ #rMem = AIMemory("STT", text)
102
 
103
  return text
104
 
105
  def text_to_sentiment(text):
106
  sentiment = classifier(text)[0]["label"]
107
 
108
+ #rMem = AIMemory(text, sentiment)
109
 
110
  return sentiment
111
 
 
116
  saved = select('TTS-STT', date_time)
117
  # check it here: https://console.firebase.google.com/u/0/project/clinical-nlp-b9117/firestore/data/~2FStreamlitSpaces
118
 
119
+ #rMem = AIMemory(text, saved)
120
 
121
  return saved
122