Spaces:
Build error
Build error
input bug fix
Browse files
app.py
CHANGED
|
@@ -63,13 +63,14 @@ def create_plot(df):
|
|
| 63 |
return fig
|
| 64 |
|
| 65 |
def visualize_data(processed_file):
|
| 66 |
-
df = load_data(
|
| 67 |
fig = create_plot(df)
|
| 68 |
return fig
|
| 69 |
|
| 70 |
# Create Gradio interface
|
| 71 |
iface = gr.Interface(
|
| 72 |
fn=visualize_data,
|
|
|
|
| 73 |
outputs=gr.Plot(label="tsne Visualization"),
|
| 74 |
title="CausalQuest Visualization",
|
| 75 |
description="Visualize causalquest data using pre-computed embeddings and tsne coordinates",
|
|
|
|
| 63 |
return fig
|
| 64 |
|
| 65 |
def visualize_data(processed_file):
|
| 66 |
+
df = load_data()
|
| 67 |
fig = create_plot(df)
|
| 68 |
return fig
|
| 69 |
|
| 70 |
# Create Gradio interface
|
| 71 |
iface = gr.Interface(
|
| 72 |
fn=visualize_data,
|
| 73 |
+
inputs=None,
|
| 74 |
outputs=gr.Plot(label="tsne Visualization"),
|
| 75 |
title="CausalQuest Visualization",
|
| 76 |
description="Visualize causalquest data using pre-computed embeddings and tsne coordinates",
|