HenRick69 commited on
Commit
0e1cc2f
1 Parent(s): 1e0a8f3

Disabling the streaming interface

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ movement_controller = FacePosition()
8
 
9
  cursor_movement = gr.Interface(
10
  fn = movement_controller.predict,
11
- inputs = gr.Image(source='webcam', streaming=True),
12
  outputs = ['image', 'text'],
13
  live = True,
14
  title = 'Cursor movement controller',
@@ -21,7 +21,7 @@ audio_classifier = AudioClassifier()
21
 
22
  audio_commands = gr.Interface(
23
  fn = audio_classifier.predict,
24
- inputs = gr.Audio(source="microphone", type="filepath", streaming=True),
25
  outputs = "text",
26
  live = True,
27
  title = 'Speech commands recognition (mouse actions)',
 
8
 
9
  cursor_movement = gr.Interface(
10
  fn = movement_controller.predict,
11
+ inputs = gr.Image(source='webcam', streaming=False),
12
  outputs = ['image', 'text'],
13
  live = True,
14
  title = 'Cursor movement controller',
 
21
 
22
  audio_commands = gr.Interface(
23
  fn = audio_classifier.predict,
24
+ inputs = gr.Audio(source="microphone", type="filepath", streaming=False),
25
  outputs = "text",
26
  live = True,
27
  title = 'Speech commands recognition (mouse actions)',