Spaces:
Configuration error
Configuration error
Kangarroar
commited on
Commit
•
9225441
1
Parent(s):
4338012
Create streamlitpoe.py
Browse files- streamlitpoe.py +39 -0
streamlitpoe.py
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pandas as pd
|
3 |
+
import numpy as np
|
4 |
+
import matplotlib.pyplot as plt
|
5 |
+
import json
|
6 |
+
import tempfile
|
7 |
+
|
8 |
+
##### PAGE CONFIG
|
9 |
+
def printthings():
|
10 |
+
print(ckpt)
|
11 |
+
print(config)
|
12 |
+
print(audio)
|
13 |
+
print(gflag)
|
14 |
+
|
15 |
+
st.set_page_config(
|
16 |
+
page_title="DiffSVC Render",
|
17 |
+
page_icon="🧊",
|
18 |
+
initial_sidebar_state="expanded",
|
19 |
+
)
|
20 |
+
############
|
21 |
+
st.title('DIFF-SVC Render')
|
22 |
+
|
23 |
+
col1, col2 = st.columns([2, 1])
|
24 |
+
|
25 |
+
with col1:
|
26 |
+
###CKPT LOADER
|
27 |
+
ckpt = st.file_uploader("Choose your CKPT", type= 'ckpt')
|
28 |
+
###CONFIG
|
29 |
+
config = st.file_uploader("Choose your config", type= 'yaml')
|
30 |
+
###CONFIG LOADER
|
31 |
+
audio = st.file_uploader("Choose your audio", type= 'wav' or 'mp3')
|
32 |
+
gflag = st.slider('Gender Flag', 0.80, 1.20, 1.00)
|
33 |
+
|
34 |
+
with col2:
|
35 |
+
###DOWNLOAD
|
36 |
+
text_contents = '''This is some text'''
|
37 |
+
st.download_button('Download Rendered File', text_contents)
|
38 |
+
st.button('Test', on_click=printthings)
|
39 |
+
|