tommy24 commited on
Commit
a6e6306
·
1 Parent(s): e4a1033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -144,8 +144,7 @@ def function(Textbox,Textbox2,Textbox3):
144
  status_code=response.status_code))
145
  with open('image.png', 'wb') as f:
146
  f.write(response.content)
147
- print(f)
148
- return f
149
  except requests.exceptions.RequestException:
150
  print('HTTP Request failed')
151
 
@@ -183,7 +182,7 @@ inputs = [
183
  gr.inputs.Textbox(label="Textbox3",type="password")
184
  ]
185
 
186
- iface = gr.Interface(fn=function, inputs=inputs, outputs="label")
187
 
188
  iface.launch()
189
 
 
144
  status_code=response.status_code))
145
  with open('image.png', 'wb') as f:
146
  f.write(response.content)
147
+ return "image.png"
 
148
  except requests.exceptions.RequestException:
149
  print('HTTP Request failed')
150
 
 
182
  gr.inputs.Textbox(label="Textbox3",type="password")
183
  ]
184
 
185
+ iface = gr.Interface(fn=function, inputs=inputs, outputs="image")
186
 
187
  iface.launch()
188