nicoco404 commited on
Commit
bf47693
·
1 Parent(s): 06810fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
 
3
- model = gr.Interface.load("models/nicoco404/autotrain-aita-post-classifier-3535895495")
4
 
5
  title = "AITA Post Classifier"
6
  description = "Enter a post prompt to predict if You're The Asshole or not. \n You can also try to input the post title to check how misleading it's being"
@@ -8,6 +8,6 @@ description = "Enter a post prompt to predict if You're The Asshole or not. \n Y
8
  inputs = gr.inputs.Textbox(label="Post Prompt")
9
  outputs = gr.outputs.Label(label="Label")
10
 
11
- interface = gr.Interface(fn=model.predict, inputs=inputs, outputs=outputs, title=title, description=description)
12
 
13
  interface.launch()
 
1
  import gradio as gr
2
 
3
+ model = gr.load("models/nicoco404/autotrain-aita-post-classifier-3535895495")
4
 
5
  title = "AITA Post Classifier"
6
  description = "Enter a post prompt to predict if You're The Asshole or not. \n You can also try to input the post title to check how misleading it's being"
 
8
  inputs = gr.inputs.Textbox(label="Post Prompt")
9
  outputs = gr.outputs.Label(label="Label")
10
 
11
+ interface = gr.Interface(fn=model, inputs=inputs, outputs=outputs, title=title, description=description)
12
 
13
  interface.launch()