File size: 936 Bytes
9225441
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import streamlit as st
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import json
import tempfile

##### PAGE CONFIG
def printthings():
    print(ckpt)
    print(config)
    print(audio)
    print(gflag)

st.set_page_config(
    page_title="DiffSVC Render",
    page_icon="🧊",
    initial_sidebar_state="expanded",
)
############
st.title('DIFF-SVC Render')

col1, col2 = st.columns([2, 1])

with col1:
    ###CKPT LOADER
    ckpt = st.file_uploader("Choose your CKPT", type= 'ckpt')
        ###CONFIG
    config = st.file_uploader("Choose your config", type= 'yaml')
        ###CONFIG LOADER
    audio = st.file_uploader("Choose your audio", type= 'wav' or 'mp3')
    gflag = st.slider('Gender Flag', 0.80, 1.20, 1.00)    
    
with col2:
    ###DOWNLOAD
    text_contents = '''This is some text'''
    st.download_button('Download Rendered File', text_contents)
    st.button('Test', on_click=printthings)