Spaces:
Build error
Build error
sashavor
commited on
Commit
·
9e1d8e2
1
Parent(s):
820d8a7
removing comparison
Browse files
app.py
CHANGED
@@ -69,20 +69,20 @@ with gr.Blocks() as demo:
|
|
69 |
prediction = gr.State()
|
70 |
|
71 |
with gr.Row():
|
72 |
-
with gr.Column():
|
73 |
-
image = gr.Image(shape=(
|
74 |
radio = gr.Radio(["option1", "option2", "option3"], label="Pick a category", interactive=True)
|
75 |
with gr.Column():
|
76 |
prediction = gr.Label(label="Model Prediction")
|
77 |
score = gr.Label(label="Your Score")
|
78 |
-
message = gr.Text()
|
79 |
|
80 |
btn = gr.Button("Next image")
|
81 |
|
82 |
demo.load(random_image, None, [image, image_label, radio, prediction])
|
83 |
radio.change(model_classify, image, prediction)
|
84 |
radio.change(check_score, [radio, image_label, user_score], [user_score, score])
|
85 |
-
radio.change(compare_score, [radio, prediction], message)
|
86 |
btn.click(random_image, None, [image, image_label, radio, prediction])
|
87 |
|
88 |
|
|
|
69 |
prediction = gr.State()
|
70 |
|
71 |
with gr.Row():
|
72 |
+
with gr.Column(min_width= 900):
|
73 |
+
image = gr.Image(shape=(224, 224))
|
74 |
radio = gr.Radio(["option1", "option2", "option3"], label="Pick a category", interactive=True)
|
75 |
with gr.Column():
|
76 |
prediction = gr.Label(label="Model Prediction")
|
77 |
score = gr.Label(label="Your Score")
|
78 |
+
#message = gr.Text()
|
79 |
|
80 |
btn = gr.Button("Next image")
|
81 |
|
82 |
demo.load(random_image, None, [image, image_label, radio, prediction])
|
83 |
radio.change(model_classify, image, prediction)
|
84 |
radio.change(check_score, [radio, image_label, user_score], [user_score, score])
|
85 |
+
#radio.change(compare_score, [radio, prediction], message)
|
86 |
btn.click(random_image, None, [image, image_label, radio, prediction])
|
87 |
|
88 |
|