Spaces:
Build error
Build error
try gradio
Browse files- Dockerfile +1 -1
- app.py +17 -5
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
-
FROM
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
7 |
|
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
|
4 |
+
FROM kevinkune/sbdd:latest
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
7 |
|
app.py
CHANGED
@@ -1,7 +1,19 @@
|
|
1 |
-
from fastapi import FastAPI
|
2 |
|
3 |
-
app = FastAPI()
|
4 |
|
5 |
-
@app.get("/")
|
6 |
-
def greet_json():
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# from fastapi import FastAPI
|
2 |
|
3 |
+
# app = FastAPI()
|
4 |
|
5 |
+
# @app.get("/")
|
6 |
+
# def greet_json():
|
7 |
+
# return {"Hello": "World!"}
|
8 |
+
|
9 |
+
|
10 |
+
import gradio as gr
|
11 |
+
|
12 |
+
from gradio_molecule3d import Molecule3D
|
13 |
+
|
14 |
+
with gr.Blocks() as demo:
|
15 |
+
gr.Markdown("# MolCRAFT: Structure-Based Drug Design in Continuous Parameter Space [ICML 2024]")
|
16 |
+
|
17 |
+
|
18 |
+
if __name__ == '__main__':
|
19 |
+
demo.launch(share=True)
|