kmsmohamedansar commited on
Commit
621ef15
·
verified ·
1 Parent(s): 35499c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,11 +30,11 @@ def main():
30
 
31
  output = gr.Textbox()
32
 
33
- # Launch the Gradio interface
34
  gr.Interface(
35
  fn=lambda feature1, feature2, feature3, feature4, feature5: predict(model, feature1, feature2, feature3, feature4, feature5),
36
  inputs=inputs, outputs=output, live=True
37
- ).launch(gpu=False) # Ensure the app doesn't request GPU, forces CPU usage
38
 
39
  if __name__ == '__main__':
40
  main()
 
30
 
31
  output = gr.Textbox()
32
 
33
+ # Launch the Gradio interface without the gpu argument
34
  gr.Interface(
35
  fn=lambda feature1, feature2, feature3, feature4, feature5: predict(model, feature1, feature2, feature3, feature4, feature5),
36
  inputs=inputs, outputs=output, live=True
37
+ ).launch()
38
 
39
  if __name__ == '__main__':
40
  main()