Commit
·
3ea6377
1
Parent(s):
359a507
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def quantified_classification(transcript, threshold):
|
|
130 |
|
131 |
# Gradio UI
|
132 |
|
133 |
-
with gr.Blocks(css=".gradio-container { background-color: white; background-image: url('file
|
134 |
gr.Markdown("# Transcript classifier")
|
135 |
with gr.Row():
|
136 |
transcript = gr.Textbox(lines=3, label="Transcript", placeholder="Transcript Here...")
|
@@ -141,7 +141,7 @@ with gr.Blocks(css=".gradio-container { background-color: white; background-imag
|
|
141 |
label = gr.Label()
|
142 |
plot = gr.Plot()
|
143 |
with gr.Row():
|
144 |
-
grid = gr.Dataframe()
|
145 |
btn.click(fn=quantified_classification, inputs=[transcript,threshold], outputs=[label,plot,grid])
|
146 |
gr.Examples(
|
147 |
[
|
|
|
130 |
|
131 |
# Gradio UI
|
132 |
|
133 |
+
with gr.Blocks(css=".gradio-container { background-color: white; background-image: url('file=./qc-logo.png'); background-size: 75px 75px; background-repeat: no-repeat; background-position: 0px 0px; }") as demo:
|
134 |
gr.Markdown("# Transcript classifier")
|
135 |
with gr.Row():
|
136 |
transcript = gr.Textbox(lines=3, label="Transcript", placeholder="Transcript Here...")
|
|
|
141 |
label = gr.Label()
|
142 |
plot = gr.Plot()
|
143 |
with gr.Row():
|
144 |
+
grid = gr.Dataframe(wrap=True)
|
145 |
btn.click(fn=quantified_classification, inputs=[transcript,threshold], outputs=[label,plot,grid])
|
146 |
gr.Examples(
|
147 |
[
|