won't start on windows

#2
by vulu - opened

Thanks for creating this project, it works very well on the demo so far. I wanted to speed things up and run it locally on windows, but I have run into a couple issues. i hope you can help.

  1. after cloning this rep and running it i get a warning that bitandbytes is not compiled for gpu
    bitandbytes-cuda117 did not work and i am at a loss here.
  2. the webui starts but it throws an error when i try to process a video. namely :
    Unable to parse option value "AIVIDEO-TRANSLATION-TRANSCRIPTION/e6627e4a-8601-40b0-a4f1-d1249e4de0cd.srt" as image size
    Error applying option 'original_size' to filter 'subtitles': Invalid argument
    [vost#0:0/libx264 @ 00000204c3a7cbc0] Error initializing a simple filtergraph
    Error opening output file e6627e4a-8601-40b0-a4f1-d1249e4de0cd_output_video.mp4.
    Error opening output files: Invalid argument

process_video concluído com sucesso
Returning output video path: e6627e4a-8601-40b0-a4f1-d1249e4de0cd_output_video.mp4
Traceback (most recent call last):
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\routes.py", line 523, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1440, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\blocks.py", line 1341, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\components\video.py", line 281, in postprocess
processed_files = (self._format_video(y), None)
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\components\video.py", line 355, in _format_video
video = self.make_temp_copy_if_needed(video)
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\components\base.py", line 226, in make_temp_copy_if_needed
temp_dir = self.hash_file(file_path)
File "C:\Users\aaa\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\components\base.py", line 190, in hash_file
with open(file_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'e6627e4a-8601-40b0-a4f1-d1249e4de0cd_output_video.mp4'

running it with docker on vast.ai was successful

trying it out on wsl2 i can't get the webui to start i get asgi errors
File "/home/aaa/VIDEO-TRANSLATION-TRANSCRIPTION/venv/lib/python3.10/site-packages/httpx/_models.py", line 90, in init
raise InvalidURL("No scheme included in URL.")
httpx._exceptions.InvalidURL: No scheme included in URL.

I dont run it locally. Sorry. I cant help.

Sign up or log in to comment