awacke1 commited on
Commit
e11aef1
β€’
1 Parent(s): 8cf7c3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,8 +33,8 @@ def text_to_sentiment(text):
33
 
34
  def upsert(text):
35
  date_time =str(datetime.datetime.today())
36
- doc_ref = db.collection('Text2SpeechSentimentSave').document('Text2SpeechSentimentSave')
37
- doc_ref.set({u'firefield': date_time, u'first': 'Text2SpeechSentimentSave', u'last': text, u'born': date_time,})
38
  saved = select('Text2SpeechSentimentSave','Text2SpeechSentimentSave')
39
  # check it here: https://console.firebase.google.com/u/0/project/clinical-nlp-b9117/firestore/data/~2FStreamlitSpaces
40
  return saved
 
33
 
34
  def upsert(text):
35
  date_time =str(datetime.datetime.today())
36
+ doc_ref = db.collection('Text2SpeechSentimentSave').document(date_time)
37
+ doc_ref.set({u'firefield': 'Recognize Speech', u'first': 'https://huggingface.co/spaces/awacke1/Text2SpeechSentimentSave', u'last': text, u'born': date_time,})
38
  saved = select('Text2SpeechSentimentSave','Text2SpeechSentimentSave')
39
  # check it here: https://console.firebase.google.com/u/0/project/clinical-nlp-b9117/firestore/data/~2FStreamlitSpaces
40
  return saved