Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -139,7 +139,7 @@ def judge(x):
|
|
139 |
another_result += "Ngôn ngữ vi phạm tiêu chuẩn cộng đồng nghiêm trọng, yêu cầu chấn chỉnh.\n"
|
140 |
|
141 |
p = plot(final_result)
|
142 |
-
return (return_result,
|
143 |
|
144 |
if __name__ == "__main__":
|
145 |
# print("Loading")
|
@@ -150,5 +150,5 @@ if __name__ == "__main__":
|
|
150 |
# judge(string)
|
151 |
interface = gr.Interface(fn=judge,
|
152 |
inputs=gr.Textbox(lines=2, placeholder='Please write something', label="Input Text"),
|
153 |
-
outputs=['text','
|
154 |
interface.launch()
|
|
|
139 |
another_result += "Ngôn ngữ vi phạm tiêu chuẩn cộng đồng nghiêm trọng, yêu cầu chấn chỉnh.\n"
|
140 |
|
141 |
p = plot(final_result)
|
142 |
+
return (return_result, p, another_result)
|
143 |
|
144 |
if __name__ == "__main__":
|
145 |
# print("Loading")
|
|
|
150 |
# judge(string)
|
151 |
interface = gr.Interface(fn=judge,
|
152 |
inputs=gr.Textbox(lines=2, placeholder='Please write something', label="Input Text"),
|
153 |
+
outputs=['text','plot','text'])
|
154 |
interface.launch()
|