Ngadou commited on
Commit
c9713fc
·
1 Parent(s): ffa8b66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 decision 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")
 
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")