File size: 835 Bytes
458eaee
af894bb
 
458eaee
af894bb
 
458eaee
af894bb
 
 
 
 
458eaee
af894bb
 
 
 
458eaee
af894bb
 
 
 
 
 
 
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
import streamlit as st
import os
import subprocess

# Title
st.title("Multimodal Garment Designer")

# Input fields
dataset_path = st.text_input("Dataset Path:", "./assets/data/dresscode")
output_dir = st.text_input("Output Directory:", "./output")
test_order = st.selectbox("Test Order:", ["paired", "unpaired"])
save_name = st.text_input("Save Name:", "model_output")

# Button to run the eval script
if st.button("Run Evaluation"):
    # Construct the command
    command = f"python eval.py --output_dir {output_dir} --dataset_path {dataset_path} --test_order {test_order} --save_name {save_name}"

    # Run the command
    with st.spinner("Running evaluation..."):
        result = subprocess.run(command, shell=True, capture_output=True, text=True)

    # Display the result
    st.code(result.stdout)
    st.code(result.stderr)