Hi!
My app link is: https://mcqs-gen.streamlit.app/
Github Repository link: GitHub - ziayounasch/genai
I have tried this app on 3.8 and 3.11 version of python and the latest streamlit version.
I am getting the following error while uploading the file and running the app:
────────────────────── Traceback (most recent call last) ───────────────────────
/home/adminuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrun
ner/script_runner.py:600 in _run_script
/mount/src/genai/StreamlitApp.py:71 in <module>
68 │ │ │ │ │ if quiz is not None:
69 │ │ │ │ │ │ table_data=get_table_data(quiz)
70 │ │ │ │ │ │ if table_data is not None:
❱ 71 │ │ │ │ │ │ │ df=pd.DataFrame(table_data)
72 │ │ │ │ │ │ │ df.index=df.index+1
73 │ │ │ │ │ │ │ st.table(df)
74 │ │ │ │ │ │ │ #Display the review in atext box as well
/home/adminuser/venv/lib/python3.8/site-packages/pandas/core/frame.py:817 in
__init__
814 │ │ # For data is scalar
815 │ │ else:
816 │ │ │ if index is None or columns is None:
❱ 817 │ │ │ │ raise ValueError("DataFrame constructor not properly
818 │ │ │
819 │ │ │ index = ensure_index(index)
820 │ │ │ columns = ensure_index(columns)
────────────────────────────────────────────────────────────────────────────────
ValueError: DataFrame constructor not properly called!
I will really appreciate your help in this regard.
Thanks!