tommy24 commited on
Commit
e35eea7
·
1 Parent(s): 6e87ead

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- "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()
 
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()