Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
37 |
-
doc_ref.set({u'firefield':
|
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
|