ShreyMehra commited on
Commit
40de5f7
·
unverified ·
1 Parent(s): 8aad5c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -17,10 +17,11 @@ st.markdown("Link to the model - [Image-to-Caption-App on 🤗 Spaces](https://h
17
 
18
  class UI:
19
  def __init__(self):
20
- model = Model()
21
- model.load_model()
22
 
23
  def displayUI(self):
 
24
  image = st.file_uploader(label = "Upload your image here",type=['png','jpg','jpeg'])
25
  if image is not None:
26
 
@@ -67,6 +68,7 @@ class Model:
67
 
68
  def main():
69
  ui = UI()
 
70
  ui.displayUI()
71
 
72
  if __name__ == "__main__":
 
17
 
18
  class UI:
19
  def __init__(self):
20
+ mod = Model()
21
+ mod.load_model()
22
 
23
  def displayUI(self):
24
+ print("display")
25
  image = st.file_uploader(label = "Upload your image here",type=['png','jpg','jpeg'])
26
  if image is not None:
27
 
 
68
 
69
  def main():
70
  ui = UI()
71
+ print("dis")
72
  ui.displayUI()
73
 
74
  if __name__ == "__main__":