kingabzpro
commited on
Sync local Space with Hub
Browse files- README.md +4 -6
- drug_app.py +14 -0
README.md
CHANGED
@@ -1,13 +1,11 @@
|
|
1 |
---
|
2 |
title: Drug Classification
|
3 |
-
emoji:
|
4 |
colorFrom: yellow
|
5 |
-
colorTo:
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.16.0
|
8 |
-
app_file:
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
-
---
|
12 |
-
|
13 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
title: Drug Classification
|
3 |
+
emoji: 💊
|
4 |
colorFrom: yellow
|
5 |
+
colorTo: red
|
6 |
sdk: gradio
|
7 |
sdk_version: 4.16.0
|
8 |
+
app_file: drug_app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
+
---
|
|
|
|
drug_app.py
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def greet(name, intensity):
|
5 |
+
return "Hello " * intensity + name + "!"
|
6 |
+
|
7 |
+
|
8 |
+
demo = gr.Interface(
|
9 |
+
fn=greet,
|
10 |
+
inputs=["text", "slider"],
|
11 |
+
outputs=["text"],
|
12 |
+
)
|
13 |
+
|
14 |
+
demo.launch()
|