roman2838 commited on
Commit
678bb37
1 Parent(s): 4151e0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
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
- # demo.footer_html = "<a href='https://ko-fi.com/your_kofi_link'>Support me on Ko-fi</a>"
113
- demo.launch(server_port=1113 )
 
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( )