Commit
·
e28c3ee
1
Parent(s):
c0c87ea
Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ headers = {"Authorization": "Bearer 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"}
|
|
9 |
inputs = gr.inputs.Image(type="pil", label="Upload an image")
|
10 |
|
11 |
# Perform image segmentation for multy class output
|
12 |
-
def query(inputs):
|
13 |
-
|
14 |
-
|
15 |
|
16 |
-
inputs = "04_deer.jpg"
|
17 |
def query(inputs):
|
18 |
with open(inputs, "rb") as f:
|
19 |
data = f.read()
|
|
|
9 |
inputs = gr.inputs.Image(type="pil", label="Upload an image")
|
10 |
|
11 |
# Perform image segmentation for multy class output
|
12 |
+
# def query(inputs):
|
13 |
+
# response = requests.post(API_URL, headers=headers, data=inputs)
|
14 |
+
# return response.json()
|
15 |
|
16 |
+
inputs = "./04_deer.jpg"
|
17 |
def query(inputs):
|
18 |
with open(inputs, "rb") as f:
|
19 |
data = f.read()
|