whitphx HF Staff commited on
Commit
db18f4a
·
1 Parent(s): 0fec873
Files changed (2) hide show
  1. app.py +15 -0
  2. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastrtc import Stream
2
+ import numpy as np
3
+
4
+
5
+ def flip_vertically(image):
6
+ return np.flip(image, axis=0)
7
+
8
+
9
+ stream = Stream(
10
+ handler=flip_vertically,
11
+ modality="video",
12
+ mode="send-receive",
13
+ )
14
+
15
+ stream.ui.launch()
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ fastrtc
2
+ twilio