garrettbaber commited on
Commit
9c03e20
·
1 Parent(s): 0699b93

test full str

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -18,7 +18,11 @@ def processByModel(data, modelType):
18
  return formatOutput(outputs, modelType)
19
 
20
  def processInput(input):
21
- return processByModel(input, 'fear')
 
 
 
 
22
 
23
  app = gr.Interface(fn=processInput, inputs="text", outputs="text")
24
 
 
18
  return formatOutput(outputs, modelType)
19
 
20
  def processInput(input):
21
+ fearIntensityStr = processByModel(input, 'fear')
22
+ joyIntensityStr = processByModel(input, 'joy')
23
+ angerIntensityStr = processByModel(input, 'anger')
24
+ sadnessIntensityStr = processByModel(input, 'sadness')
25
+ return fearIntensityStr + "\n" + joyIntensityStr + "\n" + angerIntensityStr + "\n" + sadnessIntensityStr + "\n"
26
 
27
  app = gr.Interface(fn=processInput, inputs="text", outputs="text")
28