Spaces:
Runtime error
Runtime error
Commit History
-
Update app.py
Verified signatureadf114d -
Update app.py
Verified signaturea667749 -
Update app.py
Verified signatureimport os import gradio as gr from groq import Groq # 🔑 SET YOUR GROQ API KEY HERE (IMPORTANT) os.environ["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"] = "YOUR_GROQ_API_KEY" client = Groq( api_key=os.environ["GROQ_API_KEY"] ) # 🧬 Bioinformatics AI System Prompt SYSTEM_PROMPT = """ You are a professional Bioinformatics AI assistant. You help users with: - DNA, RNA, and protein sequence analysis - Gene function and mutation explanation - FASTA / FASTQ format understanding - BLAST and alignment concepts - Molecular biology and genomics - Bioinformatics tools and pipelines Always answer in a simple, clear, and educational way. """ # 💬 Chat function def chat_with_bioai(message, history): messages = [{"role": "system", "content": SYSTEM_PROMPT}] for user_msg, bot_msg in history: messages.append({"role": "user", "content": user_msg}) messages.append({"role": "assistant", "content": bot_msg}) messages.append({"role": "user", "con…e5703b5 -
Update app.py
Verified signature1d03e57 -
Create app.py
Verified signature2dba8e0 -
Create Requirements.txt
Verified signature2b9180a -
initial commit
Verified signaturefb4c98b