Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -290,13 +290,14 @@ with gr.Blocks() as app:
|
|
| 290 |
btn = gr.Button("Detect AI")
|
| 291 |
mes = gr.HTML("""""")
|
| 292 |
|
|
|
|
| 293 |
with gr.Group():
|
| 294 |
with gr.Row():
|
| 295 |
fin = gr.Label(label="Final Probability")
|
| 296 |
with gr.Row():
|
| 297 |
for i, model in enumerate(models):
|
| 298 |
with gr.Group():
|
| 299 |
-
gr.HTML(f"""<b>Testing on Model {i}
|
| 300 |
globals()[f'outp{i}'] = gr.HTML("""""")
|
| 301 |
globals()[f'n_out{i}'] = gr.Label(label="Output")
|
| 302 |
|
|
|
|
| 290 |
btn = gr.Button("Detect AI")
|
| 291 |
mes = gr.HTML("""""")
|
| 292 |
|
| 293 |
+
model_names = ['resnet7', 'vit', 'sdxlDetector']
|
| 294 |
with gr.Group():
|
| 295 |
with gr.Row():
|
| 296 |
fin = gr.Label(label="Final Probability")
|
| 297 |
with gr.Row():
|
| 298 |
for i, model in enumerate(models):
|
| 299 |
with gr.Group():
|
| 300 |
+
gr.HTML(f"""<b>Testing on Model {model_names[i]}:</b>""")
|
| 301 |
globals()[f'outp{i}'] = gr.HTML("""""")
|
| 302 |
globals()[f'n_out{i}'] = gr.Label(label="Output")
|
| 303 |
|