Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -386,8 +386,10 @@ class ChatBot:
|
|
| 386 |
response_text = tokenizer.decode(response[0], skip_special_tokens=True)
|
| 387 |
return response_text
|
| 388 |
|
|
|
|
|
|
|
| 389 |
def process_summary_with_stablemed(summary):
|
| 390 |
-
system_prompt = "You are a
|
| 391 |
response_text = bot.predict(summary, system_prompt)
|
| 392 |
return response_text
|
| 393 |
|
|
|
|
| 386 |
response_text = tokenizer.decode(response[0], skip_special_tokens=True)
|
| 387 |
return response_text
|
| 388 |
|
| 389 |
+
bot = ChatBot()
|
| 390 |
+
|
| 391 |
def process_summary_with_stablemed(summary):
|
| 392 |
+
system_prompt = "You are a medical instructor . Assess and describe the proper options to your students in minute detail. Propose a course of action for them to base their recommendations on based on your description."
|
| 393 |
response_text = bot.predict(summary, system_prompt)
|
| 394 |
return response_text
|
| 395 |
|