Spaces:
Running on Zero
Running on Zero
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def _validate(protein_sequence: str, smiles_text: str):
|
|
| 82 |
return seq, smiles
|
| 83 |
|
| 84 |
|
| 85 |
-
@spaces.GPU(duration=
|
| 86 |
def score(protein_sequence: str, smiles_text: str, progress=gr.Progress(track_tqdm=True)):
|
| 87 |
"""Score protein-ligand binding with LULA-1.1.
|
| 88 |
|
|
@@ -137,7 +137,7 @@ CSS = """
|
|
| 137 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 138 |
"""
|
| 139 |
|
| 140 |
-
with gr.Blocks(
|
| 141 |
with gr.Column(elem_id="col-container"):
|
| 142 |
gr.Markdown(TITLE)
|
| 143 |
gr.Markdown(DESCRIPTION)
|
|
@@ -177,4 +177,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=CSS) as demo:
|
|
| 177 |
run.click(fn=score, inputs=[protein, ligands], outputs=out, api_name="score")
|
| 178 |
|
| 179 |
if __name__ == "__main__":
|
| 180 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 82 |
return seq, smiles
|
| 83 |
|
| 84 |
|
| 85 |
+
@spaces.GPU(duration=60)
|
| 86 |
def score(protein_sequence: str, smiles_text: str, progress=gr.Progress(track_tqdm=True)):
|
| 87 |
"""Score protein-ligand binding with LULA-1.1.
|
| 88 |
|
|
|
|
| 137 |
.dark .gradio-container { color: var(--body-text-color); }
|
| 138 |
"""
|
| 139 |
|
| 140 |
+
with gr.Blocks() as demo:
|
| 141 |
with gr.Column(elem_id="col-container"):
|
| 142 |
gr.Markdown(TITLE)
|
| 143 |
gr.Markdown(DESCRIPTION)
|
|
|
|
| 177 |
run.click(fn=score, inputs=[protein, ligands], outputs=out, api_name="score")
|
| 178 |
|
| 179 |
if __name__ == "__main__":
|
| 180 |
+
demo.launch(mcp_server=True, theme=gr.themes.Citrus(), css=CSS)
|