Instructions to use ChachKeerano/AI-Symptom_Checker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use ChachKeerano/AI-Symptom_Checker with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("undefined") model.load_adapter("ChachKeerano/AI-Symptom_Checker", set_active=True) - Notebooks
- Google Colab
- Kaggle
Make it good
#1
by ChachKeerano - opened
import openai
openai.api_key = "your_api_key_here" # Replace with your OpenAI key
def health_ai(symptom):
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a medical AI. Suggest possible conditions based on symptoms."},
{"role": "user", "content": symptom}
]
)
return response["choices"][0]["message"]["content"]
Example usage
user_symptoms = input("Enter your symptoms: ")
print(health_ai(user_symptoms))
ChachKeerano changed pull request status to merged