Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
gr.Interface.load("models/afroz14/demomodel").launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
with gr.Blocks() as demo:
|
4 |
+
with gr.Tab("English"):
|
5 |
+
gr.Markdown("""
|
6 |
+
Note: Providing more text to the `Text` box can make the prediction more accurate!
|
7 |
+
""")
|
8 |
+
t1 = gr.Textbox(lines=5, label='Text',value="There are a few things that can help protect your credit card information from being misused when you give it to a restaurant or any other business:\n\nEncryption: Many businesses use encryption to protect your credit card information when it is being transmitted or stored. This means that the information is transformed into a code that is difficult for anyone to read without the right key.")
|
9 |
+
button1 = gr.Button("π€ Predict!")
|
10 |
+
label1 = gr.Textbox(lines=1, label='Predicted Label π')
|
11 |
+
score1 = gr.Textbox(lines=1, label='Prob')
|
12 |
+
|
13 |
+
|
14 |
gr.Interface.load("models/afroz14/demomodel").launch()
|