Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import evaluate
|
|
5 |
from evaluate.utils import launch_gradio_widget
|
6 |
import gradio as gr
|
7 |
import torch
|
|
|
8 |
import classify
|
9 |
import replace_explitives
|
10 |
from whisper.model import Whisper
|
@@ -135,7 +136,9 @@ with gr.Blocks() as iface:
|
|
135 |
text = gr.Textbox(label="Enter Text", placeholder="Enter text here...")
|
136 |
submit_btn = gr.Button(label="Run")
|
137 |
with gr.Column():
|
|
|
|
|
138 |
out_text = gr.Textbox()
|
139 |
-
submit_btn.click(fn=classify_toxicity, inputs=[aud_input, text, anxiety_class, emo_class, explit_preference], outputs=out_text)
|
140 |
|
141 |
iface.launch()
|
|
|
5 |
from evaluate.utils import launch_gradio_widget
|
6 |
import gradio as gr
|
7 |
import torch
|
8 |
+
import pandas as pd
|
9 |
import classify
|
10 |
import replace_explitives
|
11 |
from whisper.model import Whisper
|
|
|
136 |
text = gr.Textbox(label="Enter Text", placeholder="Enter text here...")
|
137 |
submit_btn = gr.Button(label="Run")
|
138 |
with gr.Column():
|
139 |
+
out_val = gr.Textbox()
|
140 |
+
plot = gr.barplot()
|
141 |
out_text = gr.Textbox()
|
142 |
+
submit_btn.click(fn=classify_toxicity, inputs=[aud_input, text, anxiety_class, emo_class, explit_preference], outputs=out_val, plot, out_text)
|
143 |
|
144 |
iface.launch()
|