changeset 7:ea1c4179b2b9 draft default tip

planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit ca6d6493b0ebe9daa65de5ff5ea13b3e412c86c3
author goeckslab
date Sat, 14 Jun 2025 02:45:41 +0000
parents 1ee654186809
children
files chat_analysis.xml
diffstat 1 files changed, 13 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/chat_analysis.xml	Sat May 17 03:18:43 2025 +0000
+++ b/chat_analysis.xml	Sat Jun 14 02:45:41 2025 +0000
@@ -1,15 +1,15 @@
-<tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.2.2">
+<tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.3.0">
     <icon src="datachat.png" />
     <description>Use natural language to work with and analyze your data</description>
     <requirements>
         <container type="docker">
-            quay.io/goeckslab/chatanalysis:release
+            quay.io/goeckslab/chatanalysis:0.3.0
         </container>
     </requirements>
     <entry_points>
         <entry_point name="Chat with $input_dataset.element_identifier" requires_domain="True">
             <port>
-                8501
+                9090
             </port>
             <url>
                 /
@@ -21,23 +21,22 @@
         #import re
         echo "Starting Streamlit" &&
         echo "working dir now: `pwd`" &&
-        mkdir -p generated_files &&
+        mkdir -p outputs_dir &&
         #set $sanitized_input_dataset = re.sub('[^\w\-_\.]', '_', $input_dataset.element_identifier.strip())
         ln -sf '$input_dataset' "./${sanitized_input_dataset}";
         echo "sanitized input dataset: $sanitized_input_dataset" &&
         echo "input dataset: $input_dataset" &&
         echo "$input_dataset.ext" &&
         ln -sf $__tool_directory__/.env /ChatAnalysis/.env &&
-        streamlit run /ChatAnalysis/Chat.py
-            "$__user_email__"
-            "$openai_api_key_file"
-            "$groq_api_key_file"
-            "$chat_history"
-            "./generated_files"
-            "$input_dataset"
-            "$input_dataset.ext"
-            --browser.gatherUsageStats false &&
-        echo "Streamlit finished" &&
+        python /ChatAnalysis/chat_dspy.py
+            --user_id "$__user_email__"
+            --openai_key_file "$openai_api_key_file"
+            --groq_key_file "$groq_api_key_file"
+            --chat_history "$chat_history"
+            --outputs_dir "./outputs_dir"
+            --input_file "$input_dataset"
+            --input_type "$input_dataset.ext" &&
+        echo "finished" &&
         echo "working dir now: '.' "
 
         ]]>