Spaces:
Sleeping
Sleeping
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) | |