AItool commited on
Commit
69f656a
·
verified ·
1 Parent(s): 938fe98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -4
app.py CHANGED
@@ -8,7 +8,6 @@ import numpy as np
8
  import requests
9
  from io import BytesIO
10
  import easyocr as ocr
11
- import gradio
12
 
13
  def local_css(file_name):
14
  with open(file_name) as f:
@@ -80,6 +79,28 @@ with tab2:
80
  st.write(result_text)
81
  st.balloons()
82
  else:
83
- st.write("Upload an image to extract text using OCR.")
84
- gr.HTML("""<div style="margin: 0.75em 0;"><a href="https://www.buymeacoffee.com/Artgen" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a></div>""")
85
- gr.HTML("""<div style="margin: 0.75em 0;">But what would really help me is a <strong>PRO subscription</strong> to Google Colab, Kaggle or Hugging Face. Many thanks.</div>""")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  import requests
9
  from io import BytesIO
10
  import easyocr as ocr
 
11
 
12
  def local_css(file_name):
13
  with open(file_name) as f:
 
79
  st.write(result_text)
80
  st.balloons()
81
  else:
82
+ st.write("Upload an image to extract text using OCR.")
83
+
84
+ # Buy Me a Coffee button
85
+ st.markdown(
86
+ """
87
+ <div style="margin: 0.75em 0;">
88
+ <a href="https://www.buymeacoffee.com/Artgen" target="_blank">
89
+ <img src="https://cdn.buymeacoffee.com/buttons/default-orange.png"
90
+ alt="Buy Me A Coffee" height="41" width="174">
91
+ </a>
92
+ </div>
93
+ """,
94
+ unsafe_allow_html=True
95
+ )
96
+
97
+ # Support message
98
+ st.markdown(
99
+ """
100
+ <div style="margin: 0.75em 0;">
101
+ But what would really help me is a <strong>PRO subscription</strong>
102
+ to Google Colab, Kaggle or Hugging Face. Many thanks.
103
+ </div>
104
+ """,
105
+ unsafe_allow_html=True
106
+ )