Spaces:
Sleeping
Sleeping
Commit
•
8bbc798
1
Parent(s):
c69d72e
Update app.py
Browse files
app.py
CHANGED
@@ -414,4 +414,28 @@ with tab4:
|
|
414 |
|
415 |
st.header("Model Evaluation")
|
416 |
|
417 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
|
415 |
st.header("Model Evaluation")
|
416 |
|
417 |
+
# User input for the research topic
|
418 |
+
research_topic = st.text_input('Enter your research topic:', '')
|
419 |
+
|
420 |
+
# Selection box for the function to execute
|
421 |
+
process_selection = st.selectbox(
|
422 |
+
'Choose the process to run:',
|
423 |
+
('crewai_process_gemini', 'crewai_process_mixtral_crazy', 'crewai_process_mixtral_normal', 'crewai_process_zephyr_normal', 'crewai_process_phi2')
|
424 |
+
)
|
425 |
+
|
426 |
+
# Button to execute the chosen function
|
427 |
+
if st.button('Run Process'):
|
428 |
+
if research_topic: # Ensure there's a topic provided
|
429 |
+
if process_selection == 'crewai_process_gemini':
|
430 |
+
result = crewai_process_gemini(research_topic)
|
431 |
+
elif process_selection == 'crewai_process_mixtral_crazy':
|
432 |
+
result = crewai_process_mixtral_crazy(research_topic)
|
433 |
+
elif process_selection == 'crewai_process_mixtral_normal':
|
434 |
+
result = crewai_process_mixtral_normal(research_topic)
|
435 |
+
elif process_selection == 'crewai_process_zephyr_normal':
|
436 |
+
result = crewai_process_zephyr_normal(research_topic)
|
437 |
+
elif process_selection == 'crewai_process_phi2':
|
438 |
+
result = crewai_process_phi2(research_topic)
|
439 |
+
st.write(result)
|
440 |
+
else:
|
441 |
+
st.warning('Please enter a research topic.')
|