Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/TeamTonic/MultiMed
Browse files
app.py
CHANGED
@@ -239,7 +239,7 @@ def process_summary_with_openai(summary):
|
|
239 |
client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
|
240 |
|
241 |
# Create the prompt for OpenAI's completion
|
242 |
-
prompt = "You are clinical consultant discussion training cases with students at TonicUniversity.
|
243 |
|
244 |
# Call the OpenAI API with the prompt and the summary
|
245 |
completion = client.chat.completions.create(
|
@@ -411,7 +411,16 @@ with gr.Blocks(theme='ParityError/Anime') as iface :
|
|
411 |
text_input = gr.Textbox(label="input text",lines=5)
|
412 |
text_output = gr.Markdown(label="output text")
|
413 |
text_button = gr.Button("process text")
|
414 |
-
gr.Examples([
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
with gr.Tab("image identification"):
|
416 |
image_input = gr.Image(label="upload image")
|
417 |
image_output = gr.Markdown(label="output text")
|
|
|
239 |
client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))
|
240 |
|
241 |
# Create the prompt for OpenAI's completion
|
242 |
+
prompt = "You are clinical consultant discussion training cases with students at TonicUniversity. Assess and describe the proper options in minute detail. Propose a course of action based on your assessment. You will recieve a summary assessment in a language, respond ONLY in the original language. Exclude any other commentary:"
|
243 |
|
244 |
# Call the OpenAI API with the prompt and the summary
|
245 |
completion = client.chat.completions.create(
|
|
|
411 |
text_input = gr.Textbox(label="input text",lines=5)
|
412 |
text_output = gr.Markdown(label="output text")
|
413 |
text_button = gr.Button("process text")
|
414 |
+
gr.Examples([
|
415 |
+
["What is the proper treatment for buccal herpes?"],
|
416 |
+
["Male, 40 presenting with swollen glands and a rash"],
|
417 |
+
["How does cellular metabolism work TCA cycle"],
|
418 |
+
["What special care must be provided to children with chicken pox?"],
|
419 |
+
["When and how often should I wash my hands?"],
|
420 |
+
["بکل ہرپس کا صحیح علاج کیا ہے؟"],
|
421 |
+
["구강 헤르페스의 적절한 치료법은 무엇입니까?"],
|
422 |
+
["Je, ni matibabu gani sahihi kwa herpes ya buccal?"],
|
423 |
+
],inputs=[text_input])
|
424 |
with gr.Tab("image identification"):
|
425 |
image_input = gr.Image(label="upload image")
|
426 |
image_output = gr.Markdown(label="output text")
|