HMPhuoc commited on
Commit
14d2c3a
1 Parent(s): 3f36187

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, another_result, p)
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','text','plot'])
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()