Ricdeq commited on
Commit
2cb81cc
1 Parent(s): 147235c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import gradio as gr
2
  from gradio.inputs import File
3
- from gradio.outputs import Text, Image
4
  import os
5
  import torch
6
  from PIL import Image as PilImage
@@ -62,7 +62,7 @@ def analyze_blueprint(image_file):
62
  iface = gr.Interface(
63
  fn=analyze_blueprint,
64
  inputs=File(label="Input Blueprint Image"),
65
- outputs=[Text(label="Analysis and Cost Estimation"), Image(plot=True, label="Updated Blueprint")],
66
  title="Blueprint Analyzer",
67
  description="Upload a blueprint image and get back an analysis and cost estimation."
68
  )
 
1
  import gradio as gr
2
  from gradio.inputs import File
3
+ from gradio.outputs import Textbox, Image
4
  import os
5
  import torch
6
  from PIL import Image as PilImage
 
62
  iface = gr.Interface(
63
  fn=analyze_blueprint,
64
  inputs=File(label="Input Blueprint Image"),
65
+ outputs=[Textbox(label="Analysis and Cost Estimation"), Image(plot=True, label="Updated Blueprint")],
66
  title="Blueprint Analyzer",
67
  description="Upload a blueprint image and get back an analysis and cost estimation."
68
  )