Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,8 @@ with gr.Blocks() as demo:
|
|
| 25 |
Note: Providing more text to the `Text` box can make the prediction more accurate!
|
| 26 |
""")
|
| 27 |
t1 = gr.Textbox(lines=5, label='Text',
|
| 28 |
-
value=
|
|
|
|
| 29 |
button1 = gr.Button("🤖 Predict!")
|
| 30 |
label1 = gr.Textbox(lines=1, label='Predicted Label 🎃')
|
| 31 |
score1 = gr.Textbox(lines=1, label='Prob')
|
|
@@ -34,7 +35,7 @@ with gr.Blocks() as demo:
|
|
| 34 |
注意: 在`文本`栏中输入更多的文本,可以让预测更准确哦!
|
| 35 |
""")
|
| 36 |
t2 = gr.Textbox(lines=5, label='文本',
|
| 37 |
-
value="
|
| 38 |
button2 = gr.Button("🤖 预测!")
|
| 39 |
label2 = gr.Textbox(lines=1, label='预测结果 🎃')
|
| 40 |
score2 = gr.Textbox(lines=1, label='模型概率')
|
|
|
|
| 25 |
Note: Providing more text to the `Text` box can make the prediction more accurate!
|
| 26 |
""")
|
| 27 |
t1 = gr.Textbox(lines=5, label='Text',
|
| 28 |
+
value=“I worked on a new function on my child theme which consists of displaying on the product the number of times it has already been added to the cart. Example: if I have 3 tshirts and 1 jeans in my basket, it must respectively appear under the article tshirt > 3 and under the article jeans > 1\
|
| 29 |
+
I have already managed to make them appear individually. Unfortunately, they all appear after AND under all products.”)
|
| 30 |
button1 = gr.Button("🤖 Predict!")
|
| 31 |
label1 = gr.Textbox(lines=1, label='Predicted Label 🎃')
|
| 32 |
score1 = gr.Textbox(lines=1, label='Prob')
|
|
|
|
| 35 |
注意: 在`文本`栏中输入更多的文本,可以让预测更准确哦!
|
| 36 |
""")
|
| 37 |
t2 = gr.Textbox(lines=5, label='文本',
|
| 38 |
+
value="整体呈现 U 字形。左边叫做收缩路径(contracting path),主要是max pool 下采样,同时通道数增加。右边是扩张路径(expansive path),用反卷积( up-convolution )做上采样,恢复图像的尺寸。最后采用1\times1的卷积层代替全连接层输出。")
|
| 39 |
button2 = gr.Button("🤖 预测!")
|
| 40 |
label2 = gr.Textbox(lines=1, label='预测结果 🎃')
|
| 41 |
score2 = gr.Textbox(lines=1, label='模型概率')
|