Spaces:
Sleeping
Sleeping
developer3000
commited on
Commit
•
9498ff0
1
Parent(s):
37ee28e
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def my_inference_function(message, history):
|
|
26 |
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: {history_openai_format} Medical Answer:"
|
27 |
response = llm(prompt, max_tokens=4000)['choices'][0]['text']
|
28 |
for i in range(len(response)):
|
29 |
-
time.sleep(0.
|
30 |
yield response[: i+1]
|
31 |
|
32 |
gradio_interface = gr.ChatInterface(my_inference_function)
|
|
|
26 |
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: {history_openai_format} Medical Answer:"
|
27 |
response = llm(prompt, max_tokens=4000)['choices'][0]['text']
|
28 |
for i in range(len(response)):
|
29 |
+
time.sleep(0.01)
|
30 |
yield response[: i+1]
|
31 |
|
32 |
gradio_interface = gr.ChatInterface(my_inference_function)
|