Update app.py
Browse files
app.py
CHANGED
|
@@ -18,12 +18,12 @@ def function(paramater):
|
|
| 18 |
image = image.content
|
| 19 |
# image = base64.b64encode(image).decode('utf-8')
|
| 20 |
|
| 21 |
-
response = requests.post("https://tommy24-this-is-indeed-cool.hf.space/run/predict", json={
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
]}).json()
|
| 25 |
|
| 26 |
-
data = response["data"][0]
|
| 27 |
return image
|
| 28 |
iface = gr.Interface(fn=function, inputs="text", outputs="text")
|
| 29 |
iface.launch()
|
|
|
|
| 18 |
image = image.content
|
| 19 |
# image = base64.b64encode(image).decode('utf-8')
|
| 20 |
|
| 21 |
+
# response = requests.post("https://tommy24-this-is-indeed-cool.hf.space/run/predict", json={
|
| 22 |
+
# "data": [
|
| 23 |
+
# f"data:image/png;base64,{image}==",
|
| 24 |
+
# ]}).json()
|
| 25 |
|
| 26 |
+
# data = response["data"][0]
|
| 27 |
return image
|
| 28 |
iface = gr.Interface(fn=function, inputs="text", outputs="text")
|
| 29 |
iface.launch()
|