Commit
·
9c03e20
1
Parent(s):
0699b93
test full str
Browse files
app.py
CHANGED
@@ -18,7 +18,11 @@ def processByModel(data, modelType):
|
|
18 |
return formatOutput(outputs, modelType)
|
19 |
|
20 |
def processInput(input):
|
21 |
-
|
|
|
|
|
|
|
|
|
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 |
|