Update app.py
Browse files
app.py
CHANGED
@@ -108,26 +108,28 @@ def load_url(url):
|
|
108 |
mes=f"Image not Found<br>Error: {e}"
|
109 |
return image,mes
|
110 |
with gr.Blocks() as app:
|
111 |
-
with gr.
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
mes = gr.HTML("""""")
|
118 |
inp = gr.Pil()
|
119 |
-
with gr.Group():
|
120 |
with gr.Row():
|
121 |
with gr.Box():
|
122 |
lab0 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[0]}'>{models[0]}</a></b>""")
|
|
|
|
|
|
|
|
|
|
|
123 |
n_out0=gr.Label(label="Output")
|
124 |
outp0 = gr.HTML("""""")
|
125 |
with gr.Box():
|
126 |
-
lab1 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[1]}'>{models[1]}</a></b>""")
|
127 |
n_out1=gr.Label(label="Output")
|
128 |
outp1 = gr.HTML("""""")
|
129 |
with gr.Box():
|
130 |
-
lab2 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[2]}'>{models[2]}</a></b>""")
|
131 |
n_out2=gr.Label(label="Output")
|
132 |
outp2 = gr.HTML("""""")
|
133 |
|
|
|
108 |
mes=f"Image not Found<br>Error: {e}"
|
109 |
return image,mes
|
110 |
with gr.Blocks() as app:
|
111 |
+
with gr.Column():
|
112 |
+
in_url=gr.Textbox(label="Image URL")
|
113 |
+
with gr.Row():
|
114 |
+
load_btn=gr.Button("Load URL")
|
115 |
+
btn = gr.Button("Detect AI")
|
116 |
+
mes = gr.HTML("""""")
|
|
|
117 |
inp = gr.Pil()
|
118 |
+
with gr.Group():
|
119 |
with gr.Row():
|
120 |
with gr.Box():
|
121 |
lab0 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[0]}'>{models[0]}</a></b>""")
|
122 |
+
lab1 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[1]}'>{models[1]}</a></b>""")
|
123 |
+
lab2 = gr.HTML(f"""<b>Testing on Model: <a href='https://huggingface.co/{models[2]}'>{models[2]}</a></b>""")
|
124 |
+
|
125 |
+
with gr.Row():
|
126 |
+
with gr.Box():
|
127 |
n_out0=gr.Label(label="Output")
|
128 |
outp0 = gr.HTML("""""")
|
129 |
with gr.Box():
|
|
|
130 |
n_out1=gr.Label(label="Output")
|
131 |
outp1 = gr.HTML("""""")
|
132 |
with gr.Box():
|
|
|
133 |
n_out2=gr.Label(label="Output")
|
134 |
outp2 = gr.HTML("""""")
|
135 |
|