Spaces:
Running
Running
Commit
·
0f570bc
1
Parent(s):
5ac27c1
add more functions
Browse files
app.py
CHANGED
|
@@ -449,8 +449,7 @@ iface = gr.Interface(
|
|
| 449 |
),
|
| 450 |
gr.File(
|
| 451 |
label="Or upload a text file with SMILES",
|
| 452 |
-
file_types=[".txt"]
|
| 453 |
-
optional=True # Make file input optional
|
| 454 |
),
|
| 455 |
gr.Checkbox(
|
| 456 |
label="Show linear representation"
|
|
@@ -482,17 +481,18 @@ iface = gr.Interface(
|
|
| 482 |
examples=[
|
| 483 |
[
|
| 484 |
"CC(C)C[C@@H]1NC(=O)[C@@H]2CCCN2C(=O)[C@@H](CC(C)C)NC(=O)[C@@H](CC(C)C)N(C)C(=O)[C@H](C)NC(=O)[C@H](Cc2ccccc2)NC1=O",
|
| 485 |
-
|
| 486 |
True
|
| 487 |
],
|
| 488 |
[
|
| 489 |
"CC(C)C[C@@H]1OC(=O)[C@H](C)NC(=O)[C@H](C(C)C)OC(=O)[C@H](C)N(C)C(=O)[C@@H](C)NC(=O)[C@@H](Cc2ccccc2)N(C)C1=O",
|
| 490 |
-
|
| 491 |
True
|
| 492 |
]
|
| 493 |
],
|
| 494 |
flagging_mode="never"
|
| 495 |
)
|
|
|
|
| 496 |
# Launch the app
|
| 497 |
if __name__ == "__main__":
|
| 498 |
iface.launch()
|
|
|
|
| 449 |
),
|
| 450 |
gr.File(
|
| 451 |
label="Or upload a text file with SMILES",
|
| 452 |
+
file_types=[".txt"]
|
|
|
|
| 453 |
),
|
| 454 |
gr.Checkbox(
|
| 455 |
label="Show linear representation"
|
|
|
|
| 481 |
examples=[
|
| 482 |
[
|
| 483 |
"CC(C)C[C@@H]1NC(=O)[C@@H]2CCCN2C(=O)[C@@H](CC(C)C)NC(=O)[C@@H](CC(C)C)N(C)C(=O)[C@H](C)NC(=O)[C@H](Cc2ccccc2)NC1=O",
|
| 484 |
+
None, # Simply use None for file input in examples
|
| 485 |
True
|
| 486 |
],
|
| 487 |
[
|
| 488 |
"CC(C)C[C@@H]1OC(=O)[C@H](C)NC(=O)[C@H](C(C)C)OC(=O)[C@H](C)N(C)C(=O)[C@@H](C)NC(=O)[C@@H](Cc2ccccc2)N(C)C1=O",
|
| 489 |
+
None,
|
| 490 |
True
|
| 491 |
]
|
| 492 |
],
|
| 493 |
flagging_mode="never"
|
| 494 |
)
|
| 495 |
+
|
| 496 |
# Launch the app
|
| 497 |
if __name__ == "__main__":
|
| 498 |
iface.launch()
|