MrDdz commited on
Commit
c5a9400
1 Parent(s): 11f0536

app updated

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,6 +25,7 @@ st.write("""
25
 
26
  # Add image
27
  image = st.image("images.png", width=200)
 
28
 
29
  # Get user input
30
  text = st.text_input("Type here:")
@@ -70,7 +71,7 @@ def get_model():
70
  return tokenizer,model
71
  tokenizer, model = get_model()
72
 
73
- if text:
74
  text_sample = tokenizer([text], padding = 'max_length')
75
  print(text_sample)
76
  # output = model(text_sample)
 
25
 
26
  # Add image
27
  image = st.image("images.png", width=200)
28
+ button = st.button('Analyze')
29
 
30
  # Get user input
31
  text = st.text_input("Type here:")
 
71
  return tokenizer,model
72
  tokenizer, model = get_model()
73
 
74
+ if text and button:
75
  text_sample = tokenizer([text], padding = 'max_length')
76
  print(text_sample)
77
  # output = model(text_sample)