RCKeerano commited on
Commit
9ccb7de
·
verified ·
1 Parent(s): 0962b7e

Make it good

Browse files

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))

Files changed (1) hide show
  1. README.md +1 -0
README.md CHANGED
@@ -13,4 +13,5 @@ library_name: adapter-transformers
13
  tags:
14
  - medical
15
  - biology
 
16
  ---
 
13
  tags:
14
  - medical
15
  - biology
16
+ pipeline_tag: table-question-answering
17
  ---