Mr-Vicky-01 commited on
Commit
b163d0d
1 Parent(s): 6ff8b3f

Update interface.py

Browse files
Files changed (1) hide show
  1. interface.py +2 -2
interface.py CHANGED
@@ -3,7 +3,7 @@ import llm
3
  from file_creator import Create_Doc
4
 
5
  model = llm.Model()
6
- unvalid_image_text = 'please upload a valid screenshot.'
7
 
8
  st.markdown("""
9
  <style>
@@ -42,7 +42,7 @@ if uploaded_file:
42
  text = model.get_response(uploaded_file)
43
  st.write(text)
44
 
45
- if text.lower().strip() != unvalid_image_text:
46
  doc = Create_Doc()
47
  doc_buffer = doc.markdown_to_word(text)
48
  st.download_button(
 
3
  from file_creator import Create_Doc
4
 
5
  model = llm.Model()
6
+ invalid_image_text = 'please upload a valid screenshot.'
7
 
8
  st.markdown("""
9
  <style>
 
42
  text = model.get_response(uploaded_file)
43
  st.write(text)
44
 
45
+ if text.lower().strip() != invalid_image_text:
46
  doc = Create_Doc()
47
  doc_buffer = doc.markdown_to_word(text)
48
  st.download_button(