Robert Pardela
commited on
Commit
•
d30d2cc
1
Parent(s):
91e4305
changes
Browse files
app.py
CHANGED
@@ -6,12 +6,14 @@ chatbot = pipeline(model="Falconsai/medical_summarization")
|
|
6 |
message_list = []
|
7 |
response_list = []
|
8 |
|
9 |
-
def vanilla_chatbot(message, history):
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
|
14 |
|
15 |
-
demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Test medical summarization chatbot", description="Enter text to summarize.")
|
16 |
|
17 |
-
demo_chatbot.
|
|
|
|
|
|
6 |
message_list = []
|
7 |
response_list = []
|
8 |
|
9 |
+
# def vanilla_chatbot(message, history):
|
10 |
+
# conversation = Conversation(text=message, past_user_inputs=message_list, generated_responses=response_list)
|
11 |
+
# conversation = chatbot(conversation)
|
12 |
|
13 |
+
# return conversation.generated_responses[-1]
|
14 |
|
15 |
+
# demo_chatbot = gr.ChatInterface(vanilla_chatbot, title="Test medical summarization chatbot", description="Enter text to summarize.")
|
16 |
|
17 |
+
demo_chatbot = gr.ChatInterface(title="Test medical summarization chatbot", description="Enter text to summarize.")
|
18 |
+
|
19 |
+
demo_chatbot.launch()
|