Spaces:
Sleeping
Sleeping
Commit
·
a17c018
1
Parent(s):
30cc27c
Update app.py
Browse files
app.py
CHANGED
@@ -49,35 +49,4 @@ with gr.Blocks() as demo:
|
|
49 |
output = gr.Image(label="Composite", visible=True)
|
50 |
webcam.stream(process, [webcam], [output, attendance_label, last_refresh_box])
|
51 |
|
52 |
-
|
53 |
-
demo.queue().launch()
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
# import gradio as gr
|
58 |
-
# import numpy as np
|
59 |
-
# import time
|
60 |
-
|
61 |
-
# def add_to_stream(audio, instream):
|
62 |
-
# time.sleep(1)
|
63 |
-
# if audio is None:
|
64 |
-
# return gr.update(), instream
|
65 |
-
# if instream is None:
|
66 |
-
# ret = audio
|
67 |
-
# else:
|
68 |
-
# ret = (audio[0], np.concatenate((instream[1], audio[1])))
|
69 |
-
# return ret, ret
|
70 |
-
|
71 |
-
|
72 |
-
# with gr.Blocks() as demo:
|
73 |
-
# inp = gr.Audio(source="microphone")
|
74 |
-
# out = gr.Audio()
|
75 |
-
# stream = gr.State()
|
76 |
-
# clear = gr.Button("Clear")
|
77 |
-
|
78 |
-
# inp.stream(add_to_stream, [inp, stream], [out, stream])
|
79 |
-
# clear.click(lambda: [None, None, None], None, [inp, out, stream])
|
80 |
-
|
81 |
-
|
82 |
-
# if __name__ == "__main__":
|
83 |
-
# demo.launch()
|
|
|
49 |
output = gr.Image(label="Composite", visible=True)
|
50 |
webcam.stream(process, [webcam], [output, attendance_label, last_refresh_box])
|
51 |
|
52 |
+
demo.queue().launch(share=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|