annabossler commited on
Commit
6cb744f
·
verified ·
1 Parent(s): e23f83d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -2,6 +2,12 @@ import subprocess
2
  import sys
3
  from pathlib import Path
4
 
 
 
 
 
 
 
5
  # Build and install gradio_molecule3d
6
  print("Building gradio_molecule3d...")
7
  subprocess.run(["gradio", "cc", "build"], cwd=Path(__file__).parent / "gradio_molecule3d/", check=True)
 
2
  import sys
3
  from pathlib import Path
4
 
5
+ # Forgot README.md creating it
6
+ readme_path = Path(__file__).parent / "gradio_molecule3d" / "README.md"
7
+ if not readme_path.exists():
8
+ readme_path.write_text("# Gradio Molecule3D\n\nCustom component for molecular visualization.\n")
9
+
10
+
11
  # Build and install gradio_molecule3d
12
  print("Building gradio_molecule3d...")
13
  subprocess.run(["gradio", "cc", "build"], cwd=Path(__file__).parent / "gradio_molecule3d/", check=True)