yusyel commited on
Commit
dafefb9
1 Parent(s): 43ac702
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -37,7 +37,7 @@ def predict(img):
37
  print(dict(zip(class_names, pred)))
38
  return dict(zip(class_names, pred))
39
 
40
- demo = gr.Interface(
41
  fn=predict,
42
  inputs=[gr.inputs.Image(type="filepath")],
43
  outputs=gr.outputs.Label(),
@@ -53,6 +53,9 @@ demo = gr.Interface(
53
  ["./img/skirt.jpg"],
54
  ["./img/t-shirt.jpg"],
55
  ],
56
- title="Fashion Classification",
57
- )
58
- demo.launch(server_name="0.0.0.0", server_port=7860)
 
 
 
 
37
  print(dict(zip(class_names, pred)))
38
  return dict(zip(class_names, pred))
39
 
40
+ with gr.Interface(
41
  fn=predict,
42
  inputs=[gr.inputs.Image(type="filepath")],
43
  outputs=gr.outputs.Label(),
 
53
  ["./img/skirt.jpg"],
54
  ["./img/t-shirt.jpg"],
55
  ],
56
+ title="Fashion Classification") as demo:
57
+ gr.Markdown("# This Demo For Free Machine Learning Zoomcamp", elem_classes=['center'])
58
+ gr.Markdown("Course github Links [github](https://github.com/DataTalksClub/machine-learning-zoomcamp)",
59
+ elem_classes=['center', 'small-big'])
60
+
61
+ demo.launch(server_name="0.0.0.0", server_port=7860)