yuntian-deng commited on
Commit
22e068f
1 Parent(s): a5f715f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -101,9 +101,9 @@ with gr.Blocks() as demo:
101
  # response = line.decode('ascii').strip()
102
  # r = base64.decodebytes(response.encode('ascii'))
103
  # q = np.frombuffer(r, dtype=np.float32).reshape((64, 320, 3))
104
- i += 1
105
- yield i, q, submit_btn.update(visible=False)
106
- yield i, q, submit_btn.update(visible=True)
107
  except Exception as e:
108
  yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
109
  submit_btn.click(fn=infer, inputs=inputs, outputs=outputs)
 
101
  # response = line.decode('ascii').strip()
102
  # r = base64.decodebytes(response.encode('ascii'))
103
  # q = np.frombuffer(r, dtype=np.float32).reshape((64, 320, 3))
104
+ # i += 1
105
+ # yield i, q, submit_btn.update(visible=False)
106
+ # yield i, q, submit_btn.update(visible=True)
107
  except Exception as e:
108
  yield 1000, 255*np.ones((64, 320, 3)), submit_btn.update(visible=True)
109
  submit_btn.click(fn=infer, inputs=inputs, outputs=outputs)