SajjadAyoubi commited on
Commit
8f4e395
·
1 Parent(s): 20bb944

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
 
4
  from html import escape
5
  import os
6
  import torch
@@ -79,10 +80,16 @@ def main():
79
  _, c, _ = st.columns((1, 3, 1))
80
  query = c.text_input('Search text', value='مرغ دریای')
81
  if len(query) > 0:
82
- st.text('test text')
83
  results = image_search(query)
 
 
84
  st.markdown(get_html(results), unsafe_allow_html=True)
85
 
86
 
 
 
 
 
87
  if __name__ == '__main__':
88
  main()
 
1
  import streamlit as st
2
  import pandas as pd
3
  import numpy as np
4
+ from time import time
5
  from html import escape
6
  import os
7
  import torch
 
80
  _, c, _ = st.columns((1, 3, 1))
81
  query = c.text_input('Search text', value='مرغ دریای')
82
  if len(query) > 0:
83
+ start = time()
84
  results = image_search(query)
85
+ end = time()
86
+ st.text(str(end - start))
87
  st.markdown(get_html(results), unsafe_allow_html=True)
88
 
89
 
90
+
91
+
92
+ print()
93
+
94
  if __name__ == '__main__':
95
  main()