Update app.py
Browse files
app.py
CHANGED
|
@@ -2,13 +2,11 @@ import gradio as gr
|
|
| 2 |
import validate
|
| 3 |
import os
|
| 4 |
|
| 5 |
-
z=validate.checkp()
|
| 6 |
-
|
| 7 |
with gr.Blocks() as app:
|
| 8 |
with gr.Row() as r1:
|
| 9 |
gr.HTML("""Validate""")
|
| 10 |
with gr.Row(visible=False) as r2:
|
| 11 |
gr.HTML("""Pass""")
|
| 12 |
|
| 13 |
-
if
|
| 14 |
app.launch()
|
|
|
|
| 2 |
import validate
|
| 3 |
import os
|
| 4 |
|
|
|
|
|
|
|
| 5 |
with gr.Blocks() as app:
|
| 6 |
with gr.Row() as r1:
|
| 7 |
gr.HTML("""Validate""")
|
| 8 |
with gr.Row(visible=False) as r2:
|
| 9 |
gr.HTML("""Pass""")
|
| 10 |
|
| 11 |
+
if validate.checkp() == 1:
|
| 12 |
app.launch()
|