Spaces:
Runtime error
Runtime error
russkiyximik commited on
Commit ·
81ac89c
1
Parent(s): 72dcbca
cleanup
Browse files- mycoder/app.py +4 -4
- mycoder/src/inner/config/tasks.yaml +2 -0
mycoder/app.py
CHANGED
|
@@ -2,8 +2,8 @@ import os
|
|
| 2 |
import streamlit as st
|
| 3 |
from mycoder.src.inner.main import run
|
| 4 |
|
| 5 |
-
st.title("
|
| 6 |
-
st.write("This is a demo application for the
|
| 7 |
|
| 8 |
if "temp_file_path" not in st.session_state: # Ensures temp_file_path is only set once
|
| 9 |
st.session_state.temp_file_path = None
|
|
@@ -18,10 +18,10 @@ if uploaded_file is not None and st.session_state.temp_file_path is None:
|
|
| 18 |
st.success(f"File uploaded and saved as {st.session_state.temp_file_path}")
|
| 19 |
|
| 20 |
st.write(f"Make sure to specify the correct file name in your query, " \
|
| 21 |
-
f"e.g. {st.session_state.temp_file_path or 'Iris.csv'}")
|
| 22 |
question = st.text_input("Enter your query:")
|
| 23 |
|
| 24 |
-
if st.button("Run
|
| 25 |
with st.spinner("Running the crew..."):
|
| 26 |
result = run(question)
|
| 27 |
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from mycoder.src.inner.main import run
|
| 4 |
|
| 5 |
+
st.title("OmicsFuseRX Demo")
|
| 6 |
+
st.write("This is a demo application for the OmicsFuseRX application.")
|
| 7 |
|
| 8 |
if "temp_file_path" not in st.session_state: # Ensures temp_file_path is only set once
|
| 9 |
st.session_state.temp_file_path = None
|
|
|
|
| 18 |
st.success(f"File uploaded and saved as {st.session_state.temp_file_path}")
|
| 19 |
|
| 20 |
st.write(f"Make sure to specify the correct file name in your query, " \
|
| 21 |
+
f"e.g. generate a scatterplot for {st.session_state.temp_file_path or 'Iris.csv'}")
|
| 22 |
question = st.text_input("Enter your query:")
|
| 23 |
|
| 24 |
+
if st.button("Run OmicsFuseRX"):
|
| 25 |
with st.spinner("Running the crew..."):
|
| 26 |
result = run(question)
|
| 27 |
|
mycoder/src/inner/config/tasks.yaml
CHANGED
|
@@ -3,6 +3,8 @@ coding_task:
|
|
| 3 |
Write python code to achieve this: {assignment}.
|
| 4 |
|
| 5 |
Make sure to save any plots generated by the code as 'output/plot.png'.
|
|
|
|
|
|
|
| 6 |
expected_output: >
|
| 7 |
A text file that includes the code itself, any comments/explanation,
|
| 8 |
and the output of the code.
|
|
|
|
| 3 |
Write python code to achieve this: {assignment}.
|
| 4 |
|
| 5 |
Make sure to save any plots generated by the code as 'output/plot.png'.
|
| 6 |
+
|
| 7 |
+
Note: do not tell the user to open any output files.
|
| 8 |
expected_output: >
|
| 9 |
A text file that includes the code itself, any comments/explanation,
|
| 10 |
and the output of the code.
|