Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Gradio DataFrame error. #68

Description

@SaileshP97

Hi,

I was working on Hindi leader board, and when I ran app.py after installing required dependencies, And got this error.

Write access confirmed for HF_HOME Loading pre-calculated data.... Traceback (most recent call last): File "/Users/saileshpanda/Desktop/IITGN/mteb_hindi/leaderboard/app.py", line 343, in <module> dataframe = gr.Dataframe(item["data"], datatype=datatype, type="pandas", height=500) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/saileshpanda/Desktop/IITGN/mteb_hindi/.mteb/lib/python3.12/site-packages/gradio/component_meta.py", line 179, in wrapper return fn(self, **kwargs) ^^^^^^^^^^^^^^^^^^ TypeError: Dataframe.__init__() got an unexpected keyword argument 'height'

Code:
dataframe = gr.Dataframe(item["data"], datatype=datatype, type="pandas", height=500)

But it is working with:
dataframe = gr.Dataframe(item["data"], datatype=datatype, type="pandas", row_count=500)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions