Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,14 +20,14 @@ with gr.Blocks() as demo:
|
|
| 20 |
gr.Markdown("## π© ι ζΈ¬θ©ι¨θ¨ζ― (ζε + εη)")
|
| 21 |
|
| 22 |
with gr.Tab("ζει ζΈ¬"):
|
| 23 |
-
text_inputs = gr.TextArea(label="θΌΈε
₯θ¨ζ―")
|
| 24 |
mode_radio_1 = gr.Radio(choices=["cnn", "bert", "both"], label="εζ樑εΌ", value="cnn")
|
| 25 |
text_buotton = gr.Button("ιε§εζ")
|
| 26 |
text_result =[gr.Textbox(label = "ε€ζ·η΅ζ"),gr.Textbox(label = "ε―ηεζΈ"),gr.Textbox(label = "ε―ηθ©ε½")]
|
| 27 |
text_buotton.click(fn=predict_text, inputs=[text_inputs, mode_radio_1], outputs=text_result)
|
| 28 |
|
| 29 |
with gr.Tab("εηι ζΈ¬"):
|
| 30 |
-
image_inputs = gr.TextArea(label="δΈε³εη")
|
| 31 |
mode_radio_2 = gr.Radio(choices=["cnn", "bert", "both"], label="εζ樑εΌ", value="cnn")
|
| 32 |
image_buotton = gr.Button("ιε§εζ")
|
| 33 |
image_result =[gr.Textbox(label = "ε€ζ·η΅ζ"),gr.Textbox(label = "ε―ηεζΈ"),gr.Textbox(label = "ε―ηθ©ε½")]
|
|
|
|
| 20 |
gr.Markdown("## π© ι ζΈ¬θ©ι¨θ¨ζ― (ζε + εη)")
|
| 21 |
|
| 22 |
with gr.Tab("ζει ζΈ¬"):
|
| 23 |
+
text_inputs = gr.TextArea(label="θΌΈε
₯θ¨ζ―")
|
| 24 |
mode_radio_1 = gr.Radio(choices=["cnn", "bert", "both"], label="εζ樑εΌ", value="cnn")
|
| 25 |
text_buotton = gr.Button("ιε§εζ")
|
| 26 |
text_result =[gr.Textbox(label = "ε€ζ·η΅ζ"),gr.Textbox(label = "ε―ηεζΈ"),gr.Textbox(label = "ε―ηθ©ε½")]
|
| 27 |
text_buotton.click(fn=predict_text, inputs=[text_inputs, mode_radio_1], outputs=text_result)
|
| 28 |
|
| 29 |
with gr.Tab("εηι ζΈ¬"):
|
| 30 |
+
image_inputs = gr.TextArea(label="δΈε³εη")
|
| 31 |
mode_radio_2 = gr.Radio(choices=["cnn", "bert", "both"], label="εζ樑εΌ", value="cnn")
|
| 32 |
image_buotton = gr.Button("ιε§εζ")
|
| 33 |
image_result =[gr.Textbox(label = "ε€ζ·η΅ζ"),gr.Textbox(label = "ε―ηεζΈ"),gr.Textbox(label = "ε―ηθ©ε½")]
|