Spaces:
Running
Running
AlekseyKorshuk
commited on
Commit
•
b78be06
1
Parent(s):
9fa6ffd
Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,11 @@ st.sidebar.markdown(
|
|
28 |
text-align: center;
|
29 |
}
|
30 |
</style>
|
|
|
|
|
|
|
|
|
|
|
31 |
<p style='text-align: center'>
|
32 |
<a href="https://github.com/AlekseyKorshuk/huggingartists" target="_blank">GitHub</a> | <a href="https://wandb.ai/huggingartists/huggingartists/reportlist" target="_blank">Project Report</a>
|
33 |
</p>
|
@@ -41,24 +46,24 @@ st.sidebar.markdown(
|
|
41 |
)
|
42 |
|
43 |
|
44 |
-
st.sidebar.header("
|
45 |
num_sequences = st.sidebar.number_input(
|
46 |
"Number of sequences to generate",
|
47 |
min_value=1,
|
48 |
value=5,
|
49 |
-
help="
|
50 |
)
|
51 |
min_length = st.sidebar.number_input(
|
52 |
"Minimum length of the sequence",
|
53 |
min_value=1,
|
54 |
value=100,
|
55 |
-
help="
|
56 |
)
|
57 |
max_length= st.sidebar.number_input(
|
58 |
"Maximum length of the sequence",
|
59 |
min_value=1,
|
60 |
value=160,
|
61 |
-
help="
|
62 |
)
|
63 |
temperature = st.sidebar.slider(
|
64 |
"Temperature",
|
@@ -66,34 +71,29 @@ temperature = st.sidebar.slider(
|
|
66 |
max_value=3.0,
|
67 |
step=0.01,
|
68 |
value=1.0,
|
69 |
-
help="
|
70 |
)
|
71 |
top_p = st.sidebar.slider(
|
72 |
-
"Top
|
73 |
min_value=0.0,
|
74 |
max_value=1.0,
|
75 |
step=0.01,
|
76 |
value=0.95,
|
77 |
-
help="
|
78 |
)
|
79 |
|
80 |
top_k= st.sidebar.number_input(
|
81 |
-
"Top
|
82 |
min_value=0,
|
83 |
value=50,
|
84 |
step=1,
|
85 |
-
help="
|
86 |
)
|
87 |
|
88 |
caption = (
|
89 |
-
"`
|
90 |
-
"
|
91 |
-
"
|
92 |
-
"**outperforming** original [NeRF](https://www.matthewtancik.com/nerf)!"
|
93 |
)
|
94 |
st.markdown(caption)
|
95 |
-
|
96 |
-
"> 📒 **NOTE**: To get a detailed comparison of differences in results between `DietNeRF` and `NeRF`, you can take a look at the "
|
97 |
-
"[Experimental Results](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745#0f6bc8f1008d4765b9b4635999626d4b) "
|
98 |
-
"section in our project report."
|
99 |
-
)
|
|
|
28 |
text-align: center;
|
29 |
}
|
30 |
</style>
|
31 |
+
<p class="aligncenter">
|
32 |
+
<a href="https://github.com/AlekseyKorshuk/huggingartists" target="_blank">
|
33 |
+
<img src="https://img.shields.io/github/stars/AlekseyKorshuk/huggingartists?style=social"/>
|
34 |
+
</a>
|
35 |
+
</p>
|
36 |
<p style='text-align: center'>
|
37 |
<a href="https://github.com/AlekseyKorshuk/huggingartists" target="_blank">GitHub</a> | <a href="https://wandb.ai/huggingartists/huggingartists/reportlist" target="_blank">Project Report</a>
|
38 |
</p>
|
|
|
46 |
)
|
47 |
|
48 |
|
49 |
+
st.sidebar.header("SETTINGS")
|
50 |
num_sequences = st.sidebar.number_input(
|
51 |
"Number of sequences to generate",
|
52 |
min_value=1,
|
53 |
value=5,
|
54 |
+
help="The amount of generated texts",
|
55 |
)
|
56 |
min_length = st.sidebar.number_input(
|
57 |
"Minimum length of the sequence",
|
58 |
min_value=1,
|
59 |
value=100,
|
60 |
+
help="The minimum length of the sequence to be generated",
|
61 |
)
|
62 |
max_length= st.sidebar.number_input(
|
63 |
"Maximum length of the sequence",
|
64 |
min_value=1,
|
65 |
value=160,
|
66 |
+
help="The maximum length of the sequence to be generated",
|
67 |
)
|
68 |
temperature = st.sidebar.slider(
|
69 |
"Temperature",
|
|
|
71 |
max_value=3.0,
|
72 |
step=0.01,
|
73 |
value=1.0,
|
74 |
+
help="The value used to module the next token probabilities",
|
75 |
)
|
76 |
top_p = st.sidebar.slider(
|
77 |
+
"Top-P",
|
78 |
min_value=0.0,
|
79 |
max_value=1.0,
|
80 |
step=0.01,
|
81 |
value=0.95,
|
82 |
+
help="If set to float < 1, only the most probable tokens with probabilities that add up to top_p or higher are kept for generation.",
|
83 |
)
|
84 |
|
85 |
top_k= st.sidebar.number_input(
|
86 |
+
"Top-K",
|
87 |
min_value=0,
|
88 |
value=50,
|
89 |
step=1,
|
90 |
+
help="The number of highest probability vocabulary tokens to keep for top-k-filtering.",
|
91 |
)
|
92 |
|
93 |
caption = (
|
94 |
+
"`HuggingArtists` - Train a model to generate lyrics"
|
95 |
+
""
|
96 |
+
"In HuggingArtists, we can generate lyrics by a specific artist. This was made by fine-tuning a pre-trained HuggingFace Transformer on parsed datasets from Genius."
|
|
|
97 |
)
|
98 |
st.markdown(caption)
|
99 |
+
|
|
|
|
|
|
|
|