Atomu2014 commited on
Commit
e7fc735
·
1 Parent(s): 1a9023e

try gradio

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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 python:3.9
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
- return {"Hello": "World!"}
 
 
 
 
 
 
 
 
 
 
 
 
 
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)