KAHRAMAN42 commited on
Commit
3926786
1 Parent(s): 5aa2fad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -10,19 +10,18 @@ def classify_img(img):
10
  pred,idx,probs = learn.predict(img)
11
  return dict(zip(categories, map(float,probs)))
12
 
13
- with gr.Blocks(title = "ineğin türü nedir? ") as demo:
14
  with gr.Row():
15
  gr.Markdown("""
16
- ## inek türü Tespiti
17
- #### Bilgisayarınızdan yada telefonunuzdan resim yükleyin
18
- #### Denemek amaçlı örneklere çift tıklayın ve Tahmin Et tuşuna basın
19
  """)
20
  with gr.Row():
21
  image = gr.inputs.Image(shape=(192,192))
22
  with gr.Row():
23
  output = gr.outputs.Label()
24
  with gr.Row():
25
- image_button = gr.Button("Tahmin Et")
26
  image_button.click(classify_img, inputs=image, outputs=output)
27
 
28
  with gr.Row():
 
10
  pred,idx,probs = learn.predict(img)
11
  return dict(zip(categories, map(float,probs)))
12
 
13
+ with gr.Blocks(title = " what kind of cow ") as demo:
14
  with gr.Row():
15
  gr.Markdown("""
16
+ ### what kind of cow ?
17
+ #### click on the photos and then click "PREDİCT" button.
 
18
  """)
19
  with gr.Row():
20
  image = gr.inputs.Image(shape=(192,192))
21
  with gr.Row():
22
  output = gr.outputs.Label()
23
  with gr.Row():
24
+ image_button = gr.Button("PREDİCT")
25
  image_button.click(classify_img, inputs=image, outputs=output)
26
 
27
  with gr.Row():