Joey Callanan commited on
Commit ·
2454601
1
Parent(s): b531a54
removed quick examples
Browse files- src/app.py +1 -2
- src/ui/components.py +0 -24
src/app.py
CHANGED
|
@@ -13,7 +13,7 @@ from .ui.components import (
|
|
| 13 |
create_drug_library_tab,
|
| 14 |
create_new_experiment_tab
|
| 15 |
)
|
| 16 |
-
from .ui.handlers import VariationHandlers, BookmarkHandlers, AIHandler
|
| 17 |
from .molecules.analysis import analyze_molecule_image_only, validate_smiles_realtime, get_molecule_properties_for_hover
|
| 18 |
from .molecules.variations import generate_molecule_images, generate_chemical_series_variations
|
| 19 |
from .ai.services import respond, handle_structure_chat
|
|
@@ -30,7 +30,6 @@ def create_app():
|
|
| 30 |
variation_handlers = VariationHandlers()
|
| 31 |
bookmark_handlers = BookmarkHandlers()
|
| 32 |
ai_handler = AIHandler()
|
| 33 |
-
quick_handlers = create_quick_example_handlers()
|
| 34 |
|
| 35 |
# Create the main interface
|
| 36 |
with gr.Blocks(title="HITL Drug Discovery - Joey", theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
|
|
|
|
| 13 |
create_drug_library_tab,
|
| 14 |
create_new_experiment_tab
|
| 15 |
)
|
| 16 |
+
from .ui.handlers import VariationHandlers, BookmarkHandlers, AIHandler
|
| 17 |
from .molecules.analysis import analyze_molecule_image_only, validate_smiles_realtime, get_molecule_properties_for_hover
|
| 18 |
from .molecules.variations import generate_molecule_images, generate_chemical_series_variations
|
| 19 |
from .ai.services import respond, handle_structure_chat
|
|
|
|
| 30 |
variation_handlers = VariationHandlers()
|
| 31 |
bookmark_handlers = BookmarkHandlers()
|
| 32 |
ai_handler = AIHandler()
|
|
|
|
| 33 |
|
| 34 |
# Create the main interface
|
| 35 |
with gr.Blocks(title="HITL Drug Discovery - Joey", theme=gr.themes.Soft(), css=CUSTOM_CSS) as demo:
|
src/ui/components.py
CHANGED
|
@@ -29,30 +29,6 @@ def create_molecular_analysis_tab():
|
|
| 29 |
visible=False
|
| 30 |
)
|
| 31 |
|
| 32 |
-
# Quick access buttons for common molecules
|
| 33 |
-
gr.Markdown("### Quick Examples")
|
| 34 |
-
with gr.Row():
|
| 35 |
-
alanine_btn = gr.Button("Alanine", size="sm")
|
| 36 |
-
aspirin_btn = gr.Button("Aspirin", size="sm")
|
| 37 |
-
ibuprofen_btn = gr.Button("Ibuprofen", size="sm")
|
| 38 |
-
|
| 39 |
-
with gr.Row():
|
| 40 |
-
caffeine_btn = gr.Button("Caffeine", size="sm")
|
| 41 |
-
glucose_btn = gr.Button("Methanol", size="sm")
|
| 42 |
-
benzene_btn = gr.Button("Benzene", size="sm")
|
| 43 |
-
|
| 44 |
-
with gr.Row():
|
| 45 |
-
glucose_btn2 = gr.Button("Acetone", size="sm")
|
| 46 |
-
ethanol_btn = gr.Button("Ethanol", size="sm")
|
| 47 |
-
water_btn = gr.Button("Water", size="sm")
|
| 48 |
-
|
| 49 |
-
with gr.Row():
|
| 50 |
-
complex_btn1 = gr.Button("Glucose", size="sm")
|
| 51 |
-
complex_btn2 = gr.Button("Cholesterol", size="sm")
|
| 52 |
-
complex_btn3 = gr.Button("Penicillin", size="sm")
|
| 53 |
-
|
| 54 |
-
analyze_btn = gr.Button("🔍 Analyze Molecule", variant="primary", size="lg")
|
| 55 |
-
|
| 56 |
# Bookmark functionality
|
| 57 |
with gr.Row():
|
| 58 |
bookmark_name = gr.Textbox(
|
|
|
|
| 29 |
visible=False
|
| 30 |
)
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
# Bookmark functionality
|
| 33 |
with gr.Row():
|
| 34 |
bookmark_name = gr.Textbox(
|