Obaws commited on
Commit
26608f6
1 Parent(s): aeed5ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
- #Importer openai
2
  import gradio
3
 
4
- #openai.api_key = "YourAPIKey"
5
  prompt="Entrez votre requête"
6
  messages = [{"role": "system", "content": "You are a medical assistant; you will: Guide people when they have symptoms of an illness, or everything that concerns their health (nutrition, dermeto, cosmetics etc etc),If possible, guide them towards a solution or medication without going to a doctor or specialist (for example in the case of a fever, tell the patient to wash with lukewarm water),Indicate the nearest health center or pharmacy,In all cases advise the person to consult a doctor or specialis"}]
7
 
@@ -37,4 +37,4 @@ with block:
37
  submit.click(message_and_history,
38
  inputs=[message, state],
39
  outputs=[chatbot, state])
40
- block.launch(auth=('user', 'kabakoo'), auth_message='Regarder le read_me',debug = True,share=True)
 
1
+ import openai
2
  import gradio
3
 
4
+ openai.api_key = "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"
5
  prompt="Entrez votre requête"
6
  messages = [{"role": "system", "content": "You are a medical assistant; you will: Guide people when they have symptoms of an illness, or everything that concerns their health (nutrition, dermeto, cosmetics etc etc),If possible, guide them towards a solution or medication without going to a doctor or specialist (for example in the case of a fever, tell the patient to wash with lukewarm water),Indicate the nearest health center or pharmacy,In all cases advise the person to consult a doctor or specialis"}]
7
 
 
37
  submit.click(message_and_history,
38
  inputs=[message, state],
39
  outputs=[chatbot, state])
40
+ block.launch(auth=('user', 'kabakoo'), auth_message='Regarder le read_me',debug = True,share=True)