Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
model = gr.
|
| 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
|
| 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()
|