Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from gradio.inputs import File
|
| 3 |
-
from gradio.outputs import
|
| 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=[
|
| 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 |
)
|