Spaces:
Sleeping
Sleeping
Vaishnav14220
commited on
Commit
·
fb9b959
1
Parent(s):
124394f
Add SMILES columns to the reactions table view
Browse files
app.py
CHANGED
|
@@ -254,9 +254,9 @@ with gr.Blocks(title="Organic Reactions Search") as demo:
|
|
| 254 |
with gr.Tab("View All Reactions (Table)"):
|
| 255 |
gr.Markdown("Browse all 828 reactions in a tabular format.")
|
| 256 |
# Prepare data for table display
|
| 257 |
-
table_data = df[['corrected_name', 'general_reactants', 'general_reagents', 'general_products']].copy()
|
| 258 |
table_data['description'] = df['description'].str[:100] + '...' # Truncate description
|
| 259 |
-
table_data.columns = ['Reaction Name', 'Reactants', 'Reagents', 'Products', 'Description (truncated)']
|
| 260 |
table_output = gr.Dataframe(value=table_data, label="All Reactions", interactive=False)
|
| 261 |
gr.Markdown("""
|
| 262 |
## API Endpoints
|
|
|
|
| 254 |
with gr.Tab("View All Reactions (Table)"):
|
| 255 |
gr.Markdown("Browse all 828 reactions in a tabular format.")
|
| 256 |
# Prepare data for table display
|
| 257 |
+
table_data = df[['corrected_name', 'general_reactants', 'reactants_smiles', 'general_reagents', 'reagents_smiles', 'general_products', 'products_smiles']].copy()
|
| 258 |
table_data['description'] = df['description'].str[:100] + '...' # Truncate description
|
| 259 |
+
table_data.columns = ['Reaction Name', 'Reactants', 'Reactants SMILES', 'Reagents', 'Reagents SMILES', 'Products', 'Products SMILES', 'Description (truncated)']
|
| 260 |
table_output = gr.Dataframe(value=table_data, label="All Reactions", interactive=False)
|
| 261 |
gr.Markdown("""
|
| 262 |
## API Endpoints
|