Is it possible to run this locally?

#18
by WolfAI - opened

Hello, just as the title suggest, i want to know if its possible run this locally?
im trying to set it up but dont know where to start.
Can i just git clone the repo or something?
Thank you~

WolfAI changed discussion status to closed

Yes, just git clone and run app.py

you can check out Open In Colab

if i run app.py, the cmd immediately closed. Wonder what is wrong. Do i need to open start bat, installing requirement first or something?

WolfAI changed discussion status to open

you need to install requirement first.
pip install requirements.txt

I got this error sadly :

Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
setup.py:26: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
_CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver)
Traceback (most recent call last):
File "D:\Program Files\Python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "D:\Program Files\Python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "D:\Program Files\Python\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
etc etc etc...

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

Im not python expert so i really dont know what's the cause.
Can you help me? Thank you

Try Download and install or update https://visualstudio.microsoft.com/visual-cpp-build-tools/ . Don't forget to restart your computer

Hello i am getting this error when i try to run this Command "!python app.py --share" On Google Colab

Traceback (most recent call last):
File "/content/moe-tts/app.py", line 14, in
import gradio as gr
ModuleNotFoundError: No module named 'gradio'

Can Please some on Help me With This

you can check out Open In Colab

if you runnig it in Google Colab Please add this

" !pip install -r requirements.txt "

Before running the code from !python app.py --share

Excuse me, I've deployed it locally and started it, and I'm wondering how to modify the default port number because he and I are hogging the port used by my other programs. In addition, I would like to ask the big guy, if you use a graphics card for reasoning, how to set up to boot, CUDA11 and PyTouch are already installed locally

Excuse me, I've deployed it locally and started it, and I'm wondering how to modify the default port number because he and I are hogging the port used by my other programs. In addition, I would like to ask the big guy, if you use a graphics card for reasoning, how to set up to boot, CUDA11 and PyTouch are already installed locally

To change port number, modify the last line of app.py like this:
app.queue(concurrency_count=3).launch(show_api=False,server_port=6006, share=args.share)

To use GPU:
pyhon app.py --device gpu

Thanks, when using the command to start, the GPU boot option was not found, but I found that using device cuda can be successfully called, but I want to disclose it to other friends in the LAN for free when I find that I am using the loopback of 127.0.0.1, and friends cannot access the web port, how to modify it. Because their GPU configuration is relatively low, I want to use my server to share this project with them

大佬,这个默认调用的是第一块显卡吗,我有三块显卡在主机上。可以指定他使用那一块吗,主要是我想修改成固定ip与端口然后共享给我另一台局域网内机器人服务器使用,因为我那些朋友一点代码都不会看,所以想让他们能在远程服务器的时候可以访问控制台网页,试用一下效果。

大佬,这个默认调用的是第一块显卡吗,我有三块显卡在主机上。可以指定他使用那一块吗,主要是我想修改成固定ip与端口然后共享给我另一台局域网内机器人服务器使用,因为我那些朋友一点代码都不会看,所以想让他们能在远程服务器的时候可以访问控制台网页,试用一下效果。

可以 --device cuda:0代表使用第0号显卡

麻烦问一下大佬如何改代码让他启动固定地址访问网页呢,现在默认的是127.0.0.1.局域网无法访问,该怎么改才能变成0.0.0.0或者192.168.1.20呢。或者还是说不支持改这个

大佬我去bing查了半天,将启动改成这样能调用了,删了几个参数,请问不会出现什么问题吧

![3E005}76UKBRI6$74DLA`9B.png](https://cdn-uploads.huggingface.co/production/uploads/63b9b7dcefe99543b3500231/q5mzXmuAu5S1vY-L9cS8l.png)

大佬我去bing查了半天,将启动改成这样能调用了,删了几个参数,请问不会出现什么问题吧

可以

Sign up or log in to comment