Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
|
2 |
import gradio
|
3 |
|
4 |
-
|
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)
|