Spaces:
Running
Running
developer3000
commited on
Commit
•
f76ea38
1
Parent(s):
cc31257
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ llm = Llama(model_path=model_path,
|
|
22 |
def my_inference_function(Question):
|
23 |
prompt = f"You are an expert and experienced from the healthcare and biomedical domain with extensive medical knowledge and practical experience. Your name is OpenBioLLM, and you were developed by Saama AI Labs with Open Life Science AI. who's willing to help answer the user's query with explanation. In your explanation, leverage your deep medical expertise such as relevant anatomical structures, physiological processes, diagnostic criteria, treatment guidelines, or other pertinent medical concepts. Use precise medical terminology while still aiming to make the explanation clear and accessible to a general audience. Medical Question: {Question} Medical Answer:"
|
24 |
response = llm(prompt, max_tokens=4000)['choices'][0]['text']
|
25 |
-
|
26 |
|
27 |
-
gradio_interface = gr.ChatInterface(
|
28 |
|
29 |
gradio_interface.launch()
|
|
|
22 |
def my_inference_function(Question):
|
23 |
prompt = f"You are an expert and experienced from the healthcare and biomedical domain with extensive medical knowledge and practical experience. Your name is OpenBioLLM, and you were developed by Saama AI Labs with Open Life Science AI. who's willing to help answer the user's query with explanation. In your explanation, leverage your deep medical expertise such as relevant anatomical structures, physiological processes, diagnostic criteria, treatment guidelines, or other pertinent medical concepts. Use precise medical terminology while still aiming to make the explanation clear and accessible to a general audience. Medical Question: {Question} Medical Answer:"
|
24 |
response = llm(prompt, max_tokens=4000)['choices'][0]['text']
|
25 |
+
print("\n\n\n", response)
|
26 |
|
27 |
+
gradio_interface = gr.ChatInterface(my_inference_function)
|
28 |
|
29 |
gradio_interface.launch()
|