omerXfaruq
commited on
Commit
•
711d767
1
Parent(s):
ec2792a
Readme refactoring
Browse files
README.md
CHANGED
@@ -7,22 +7,31 @@ sdk: gradio
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
9 |
---
|
|
|
10 |
# Configuration
|
11 |
`title`: _string_
|
12 |
Display title for the Space
|
|
|
13 |
`emoji`: _string_
|
14 |
Space emoji (emoji-only character allowed)
|
|
|
15 |
`colorFrom`: _string_
|
16 |
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
|
|
17 |
`colorTo`: _string_
|
18 |
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
|
|
19 |
`sdk`: _string_
|
20 |
Can be either `gradio` or `streamlit`
|
|
|
21 |
`sdk_version` : _string_
|
22 |
Only applicable for `streamlit` SDK.
|
|
|
23 |
See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions.
|
24 |
`app_file`: _string_
|
|
|
25 |
Path to your main application file (which contains either `gradio` or `streamlit` Python code).
|
26 |
Path is relative to the root of the repository.
|
|
|
27 |
`pinned`: _boolean_
|
28 |
Whether the Space stays on top of your list.
|
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
9 |
---
|
10 |
+
|
11 |
# Configuration
|
12 |
`title`: _string_
|
13 |
Display title for the Space
|
14 |
+
|
15 |
`emoji`: _string_
|
16 |
Space emoji (emoji-only character allowed)
|
17 |
+
|
18 |
`colorFrom`: _string_
|
19 |
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
20 |
+
|
21 |
`colorTo`: _string_
|
22 |
Color for Thumbnail gradient (red, yellow, green, blue, indigo, purple, pink, gray)
|
23 |
+
|
24 |
`sdk`: _string_
|
25 |
Can be either `gradio` or `streamlit`
|
26 |
+
|
27 |
`sdk_version` : _string_
|
28 |
Only applicable for `streamlit` SDK.
|
29 |
+
|
30 |
See [doc](https://hf.co/docs/hub/spaces) for more info on supported versions.
|
31 |
`app_file`: _string_
|
32 |
+
|
33 |
Path to your main application file (which contains either `gradio` or `streamlit` Python code).
|
34 |
Path is relative to the root of the repository.
|
35 |
+
|
36 |
`pinned`: _boolean_
|
37 |
Whether the Space stays on top of your list.
|
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def greet(spaces, hf_token, username,space_name,space_description):
|
4 |
return "Thank you for using the draft, it will be completed later"
|
5 |
|
6 |
iface = gr.Interface(
|
@@ -22,4 +22,5 @@ iface = gr.Interface(
|
|
22 |
title = "Test Space",
|
23 |
description = "Sample Test Space",
|
24 |
)
|
|
|
25 |
iface.launch(inline = False)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def greet(spaces, hf_token, username, space_name, space_description):
|
4 |
return "Thank you for using the draft, it will be completed later"
|
5 |
|
6 |
iface = gr.Interface(
|
|
|
22 |
title = "Test Space",
|
23 |
description = "Sample Test Space",
|
24 |
)
|
25 |
+
|
26 |
iface.launch(inline = False)
|