Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Row' object has no attribute 'style' #853

Open
DevLenn opened this issue Apr 3, 2024 · 11 comments
Open

AttributeError: 'Row' object has no attribute 'style' #853

DevLenn opened this issue Apr 3, 2024 · 11 comments

Comments

@DevLenn
Copy link

DevLenn commented Apr 3, 2024

I get the following error by running the webui.bat in anaconda on windows:

Installing requirements for SadTalker WebUI (may take longer time in first time)
Launching SadTalker Web UI
Traceback (most recent call last):
File "Launcher.py", line 204, in
start()
File "Launcher.py", line 198, in start
demo = sadtalker_demo()
File "D:\Podcast\ai-video\SadTalker\app_sadtalker.py", line 35, in sadtalker_demo
with gr.Row().style(equal_height=False):
AttributeError: 'Row' object has no attribute 'style'

@IamTalos
Copy link

IamTalos commented Apr 6, 2024

Same error, any luck?

@DevLenn
Copy link
Author

DevLenn commented Apr 7, 2024

@IamTalos nope

@FMaz008
Copy link

FMaz008 commented Apr 7, 2024

I submitted a pull request fixing those issues:
#857

@Zaosusu
Copy link

Zaosusu commented Apr 8, 2024

try :pip install gradio==3.50.0

@ermaccw
Copy link

ermaccw commented Apr 17, 2024

fix gr.Row().style(equal_height=False): to gr.Row(equal_height=False):

@Juranik
Copy link

Juranik commented Apr 24, 2024

I fixed this error,
let me show u, look:

  1. venv\Scripts\activate
  2. pip install gradio==3.46.1
  3. in <app_sadtalker.py> change code: gr.Row().style(equal_height=False): >> gr.Row(equal_height=False):
  4. python launcher.py
    Congrats!

@X-Airlines
Copy link

4. python launcher.py

Traceback (most recent call last):
File "C:\Users\acikg\Desktop\SadTalker\launcher.py", line 204, in
start()
File "C:\Users\acikg\Desktop\SadTalker\launcher.py", line 198, in start
demo = sadtalker_demo()
File "C:\Users\acikg\Desktop\SadTalker\app_sadtalker.py", line 40, in sadtalker_demo
source_image = gr.Image(label="Source image", source="upload", type="filepath", elem_id="img2img_image").style(width=512)
File "C:\Users\acikg\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\component_meta.py", line 163, in wrapper
return fn(self, **kwargs)
TypeError: Image.init() got an unexpected keyword argument 'source'

@Explorographer
Copy link

Made those changes and same error here.

@FMaz008
Copy link

FMaz008 commented Jun 29, 2024

Guys, look at the changes in my PR above and reproduce these.

@Explorographer
Copy link

What?!

@FMaz008
Copy link

FMaz008 commented Jun 29, 2024

What?!

#857

More specifically: a84ff25

@HebatullahHesham
Copy link

HebatullahHesham commented Jul 12, 2024

Please How to use SadTalker gradio WebUI on kaggle notebook by connecting it with Ngrok?

Please, I need help. Here is the code I run on cells for using SadTalker on Kaggle that doesn't lead me to use the WebUI:

  1. !git clone https://github.com/vinthony/SadTalker.git
  2. %cd SadTalker
  3. !pip install -r requirements.txt
  4. !bash scripts/download_models.sh
  5. !bash webui.sh

It always appears to be the same issue again and again, even if I try to install, upgrade, or downgrade a specific Gradio version.

File "app_sadtalker.py", line 35, in sadtalker_demo
with gr.Row().style(equal_height=False):
AttributeError: 'Row' object has no attribute 'style'

I have solved this issue on my local device by installing the required Python version, which was 3.10.6, uninstalling other versions on my device, and making sure to delete the remaining corrupted files from the older version so it can be fixed if there is a conflict with the other version.

I really appreciate your help because I have asked ChatGPT, and it was absolutely dumb.

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

No branches or pull requests

9 participants