Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,10 @@ import pandas as pd
|
|
| 9 |
os.makedirs("data", exist_ok=True)
|
| 10 |
|
| 11 |
st.set_page_config(
|
| 12 |
-
page_title="
|
| 13 |
page_icon="📊",
|
| 14 |
)
|
| 15 |
|
| 16 |
-
st.write("# LIDA: Automatic Generation of Visualizations and Infographics using Large Language Models 📊")
|
| 17 |
|
| 18 |
st.sidebar.write("## Setup")
|
| 19 |
|
|
@@ -31,21 +30,8 @@ else:
|
|
| 31 |
display_key = openai_key[:2] + "*" * (len(openai_key) - 5) + openai_key[-3:]
|
| 32 |
st.sidebar.write(f"OpenAI API key loaded from environment variable: {display_key}")
|
| 33 |
|
| 34 |
-
st.markdown(
|
| 35 |
-
"""
|
| 36 |
-
LIDA is a library for generating data visualizations and data-faithful infographics.
|
| 37 |
-
LIDA is grammar agnostic (will work with any programming language and visualization
|
| 38 |
-
libraries e.g. matplotlib, seaborn, altair, d3 etc) and works with multiple large language
|
| 39 |
-
model providers (OpenAI, Azure OpenAI, PaLM, Cohere, Huggingface). Details on the components
|
| 40 |
-
of LIDA are described in the [paper here](https://arxiv.org/abs/2303.02927) and in this
|
| 41 |
-
tutorial [notebook](notebooks/tutorial.ipynb). See the project page [here](https://microsoft.github.io/lida/) for updates!.
|
| 42 |
-
|
| 43 |
-
This demo shows how to use the LIDA python api with Streamlit. [More](/about).
|
| 44 |
-
|
| 45 |
-
----
|
| 46 |
-
""")
|
| 47 |
-
|
| 48 |
# Step 2 - Select a dataset and summarization method
|
|
|
|
| 49 |
if openai_key:
|
| 50 |
# Initialize selected_dataset to None
|
| 51 |
selected_dataset = None
|
|
|
|
| 9 |
os.makedirs("data", exist_ok=True)
|
| 10 |
|
| 11 |
st.set_page_config(
|
| 12 |
+
page_title="LLM Visualization on tabular data",
|
| 13 |
page_icon="📊",
|
| 14 |
)
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
st.sidebar.write("## Setup")
|
| 18 |
|
|
|
|
| 30 |
display_key = openai_key[:2] + "*" * (len(openai_key) - 5) + openai_key[-3:]
|
| 31 |
st.sidebar.write(f"OpenAI API key loaded from environment variable: {display_key}")
|
| 32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
# Step 2 - Select a dataset and summarization method
|
| 34 |
+
|
| 35 |
if openai_key:
|
| 36 |
# Initialize selected_dataset to None
|
| 37 |
selected_dataset = None
|