pragnakalp
commited on
Commit
•
55b140e
1
Parent(s):
1650e5f
Update app.py
Browse files
app.py
CHANGED
@@ -120,8 +120,6 @@ Save generated details
|
|
120 |
# img_path = []
|
121 |
# text = []
|
122 |
# picture_path = "image.jpg"
|
123 |
-
if not os.path.isdir('images'):
|
124 |
-
# os.mkdir('images')
|
125 |
# curr_datetime = datetime.now().strftime('%Y-%m-%d %H-%M-%S')
|
126 |
# if text_output:
|
127 |
# splitted_path = os.path.splitext(picture_path)
|
@@ -162,15 +160,5 @@ demo = gr.Interface(
|
|
162 |
theme="darkpeach",
|
163 |
css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}"
|
164 |
)
|
165 |
-
# .gradio-container.gap-2 {gap: 10rem;row-gap: 10rem;column-gap: 10rem;}
|
166 |
-
# .gradio-container {background-color: lightgray}
|
167 |
-
demo.launch(enable_queue = False)
|
168 |
-
|
169 |
-
# with gr.Blocks(css=".gradio-container {background-color: red}") as demo:
|
170 |
-
# iif not os.path.isdir('images'):
|
171 |
-
# os.mkdir('images')nput = [gr.Image(shape=(224, 224)), gr.Radio(["EasyOCR", "KerasOCR", "PaddleOCR"],text_color="blue")]
|
172 |
-
# sub_btn = gr.Button("Submit")
|
173 |
-
# output = gr.Textbox(label="Output")
|
174 |
-
# event = sub_btn.click(generate_ocr, inputs=input, outputs=output)
|
175 |
|
176 |
-
|
|
|
120 |
# img_path = []
|
121 |
# text = []
|
122 |
# picture_path = "image.jpg"
|
|
|
|
|
123 |
# curr_datetime = datetime.now().strftime('%Y-%m-%d %H-%M-%S')
|
124 |
# if text_output:
|
125 |
# splitted_path = os.path.splitext(picture_path)
|
|
|
160 |
theme="darkpeach",
|
161 |
css=".gradio-container {background-color: lightgray} #radio_div {background-color: #FFD8B4; font-size: 40px;}"
|
162 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
+
demo.launch(enable_queue = False)
|