Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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="
|
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 |
|