Update app.py
Browse files
app.py
CHANGED
@@ -32,13 +32,13 @@ def is_scam(conversation):
|
|
32 |
decision = text["classification"]
|
33 |
reasons = text["reasons"]
|
34 |
|
35 |
-
# Return the response as it is, you will need to manually parse it into
|
36 |
return decision, reasons
|
37 |
|
38 |
# Define the Gradio interface
|
39 |
gr.Interface(
|
40 |
-
fn=is_scam,
|
41 |
-
inputs='text',
|
42 |
outputs=[
|
43 |
gr.outputs.Textbox(label="Classification"),
|
44 |
gr.outputs.Textbox(label="Reason")
|
|
|
32 |
decision = text["classification"]
|
33 |
reasons = text["reasons"]
|
34 |
|
35 |
+
# Return the response as it is, you will need to manually parse it into decisions and reasons
|
36 |
return decision, reasons
|
37 |
|
38 |
# Define the Gradio interface
|
39 |
gr.Interface(
|
40 |
+
fn=is_scam,
|
41 |
+
inputs='text',
|
42 |
outputs=[
|
43 |
gr.outputs.Textbox(label="Classification"),
|
44 |
gr.outputs.Textbox(label="Reason")
|