Update app.py
Browse files
app.py
CHANGED
@@ -98,16 +98,10 @@ with gr.Blocks() as demo:
|
|
98 |
MsgStack.append( name2+": "+response2.content)
|
99 |
chat_history.append({"sender": name1, "content": response1.content, "color" : color_chg(name1) } )
|
100 |
chat_history.append({"sender": name2, "content": response2.content, "color" : color_chg(name2) } )
|
101 |
-
|
102 |
-
|
103 |
-
# MessageStack1.append(HumanMessage(content = response2.content))
|
104 |
-
# MessageStack2.append(AIMessage(content = response2.content))
|
105 |
-
# for i in MsgStack:
|
106 |
-
# conversation += i + "\n"
|
107 |
-
# print(conversation)
|
108 |
return format_chat(chat_history)
|
109 |
|
110 |
btn_run.click(fn=initialize, inputs=[name1, name2, iterations, openai_key], outputs = output)
|
111 |
|
112 |
-
|
113 |
-
demo.launch(
|
|
|
98 |
MsgStack.append( name2+": "+response2.content)
|
99 |
chat_history.append({"sender": name1, "content": response1.content, "color" : color_chg(name1) } )
|
100 |
chat_history.append({"sender": name2, "content": response2.content, "color" : color_chg(name2) } )
|
101 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
return format_chat(chat_history)
|
103 |
|
104 |
btn_run.click(fn=initialize, inputs=[name1, name2, iterations, openai_key], outputs = output)
|
105 |
|
106 |
+
|
107 |
+
demo.launch( )
|