Skip to content

Conversation

@AkhtarXx
Copy link

Summary

1:Added automatic device detection allowing it to run on CPU when a GPU is not available
2:I have also added API endpoints to use it in production.

Motivation

The current implementation always attempts to use GPU, which causes errors when running on systems without a GPU.now it will also run on cpu
When using it for production you have to use Gradio endpoints now it has own endpoint and Gradio one also

Testing Done

Tested the WebUI on:

  • System with GPU: Successfully utilized CUDA acceleration
  • System without GPU: Automatically fell back to CPU without errors
  • Tested API endpoints with Postman for production use cases

This PR maintains backward compatibility with existing usage patterns.

@journeytosilius
Copy link

does this PR fixes this ? : #32

it happens randomly and it's quite annoying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants