Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def text_to_sentiment(text):
|
|
40 |
def upsert(text):
|
41 |
date_time =str(datetime.datetime.today()).split()[0]
|
42 |
doc_ref = db.collection('Text2SpeechSentimentSave').document('Text2SpeechSentimentSave')
|
43 |
-
doc_ref.set({u'firefield': 'Text2SpeechSentimentSave', u'first': 'Text2SpeechSentimentSave', u'last':
|
44 |
saved = select('Text2SpeechSentimentSave','Text2SpeechSentimentSave')
|
45 |
return saved
|
46 |
|
|
|
40 |
def upsert(text):
|
41 |
date_time =str(datetime.datetime.today()).split()[0]
|
42 |
doc_ref = db.collection('Text2SpeechSentimentSave').document('Text2SpeechSentimentSave')
|
43 |
+
doc_ref.set({u'firefield': 'Text2SpeechSentimentSave', u'first': 'Text2SpeechSentimentSave', u'last': text, u'born': date_time,})
|
44 |
saved = select('Text2SpeechSentimentSave','Text2SpeechSentimentSave')
|
45 |
return saved
|
46 |
|