LPX55 commited on
Commit
5ab3420
·
verified ·
1 Parent(s): bbe868c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -117,14 +117,12 @@ def main():
117
  return run_inference(input_image, model)
118
  # Create Gradio Tabs
119
  with gr.Blocks() as demo:
120
- gr.Markdown("# Community Forensics Dataset Trained Detection Model")
121
- with gr.Tab("Image Inference"):
122
- with gr.Row():
123
- with gr.Column():
124
- input_image = gr.Image(type="pil", label="Upload Image")
125
- with gr.Column():
126
- output = gr.JSON(label="Classification Result")
127
- input_image.change(fn=gradio_interface, inputs=input_image, outputs=output)
128
  # Launch the Gradio app
129
  demo.launch()
130
 
 
117
  return run_inference(input_image, model)
118
  # Create Gradio Tabs
119
  with gr.Blocks() as demo:
120
+ with gr.Row():
121
+ with gr.Column():
122
+ input_image = gr.Image(type="pil", label="Upload Image")
123
+ with gr.Column():
124
+ output = gr.JSON(label="Classification Result")
125
+ input_image.change(fn=gradio_interface, inputs=input_image, outputs=output)
 
 
126
  # Launch the Gradio app
127
  demo.launch()
128