awacke1 commited on
Commit
3f34c57
1 Parent(s): 141dbf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -31,12 +31,10 @@ classifier = pipeline("text-classification")
31
 
32
  def speech_to_text(speech):
33
  text = asr(speech)["text"]
34
- upsertoftheminute(u'TimeSeries', u'DocumentofMinuteText', u'TestUser1', u'🧠🌳Yggdrasil🌳🧠', text, 2022)
35
  return text
36
 
37
  def text_to_sentiment(text):
38
  sentiment = classifier(text)[0]["label"]
39
- upsertoftheminute(u'TimeSeries', u'DocumentofMinuteSentiment', u'TestUser1', u'🧠🌳Yggdrasil🌳🧠', sentiment, 2022)
40
  return sentiment
41
 
42
  def upsert(text):
@@ -53,7 +51,6 @@ def select(collection, document):
53
  contents = ("The contents are: ", doc.to_dict())
54
  return contents
55
 
56
-
57
  demo = gr.Blocks()
58
 
59
  with demo:
 
31
 
32
  def speech_to_text(speech):
33
  text = asr(speech)["text"]
 
34
  return text
35
 
36
  def text_to_sentiment(text):
37
  sentiment = classifier(text)[0]["label"]
 
38
  return sentiment
39
 
40
  def upsert(text):
 
51
  contents = ("The contents are: ", doc.to_dict())
52
  return contents
53
 
 
54
  demo = gr.Blocks()
55
 
56
  with demo: