Spaces:
Running
Running
Mr-Vicky-01
commited on
Update interface.py
Browse files- 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 |
-
|
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() !=
|
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(
|