OuroborosM commited on
Commit
675fa08
·
1 Parent(s): 141ce89

back to normal

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1683,14 +1683,14 @@ def chathmi5(message, history2):
1683
  for next_token, content in stream(message):
1684
  temp = temp + content
1685
  history_int = history2 + [(None, temp)]
 
1686
  yield(None, history_int, None, None)
1687
  elif agent is None:
1688
  response = asyncio.run(start_playwright(message))
1689
-
 
1690
  time.sleep(0.1)
1691
- history2 = history_int
1692
  yield ["", history2, gr.update(visible = True), gr.update(visible = False)]
1693
-
1694
 
1695
  # yield ["", history2, None, None]
1696
  print ("response of chatbot:", response)
@@ -2055,7 +2055,7 @@ with gr.Blocks() as demo:
2055
  # UserRecord.append((None, timestr+'\n'+WelcomeStr))
2056
  with gr.Column() as main2:
2057
  title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
2058
- <center> v0.7.9: Powered by MECH Core Team - GPT4 REMOTE MODE"""),
2059
  chatbot = gr.Chatbot(
2060
  # avatar_images=((os.path.join(os.path.dirname(__file__),"User.png")), (os.path.join(os.path.dirname(__file__),"AI.png"))),
2061
  )
@@ -2125,7 +2125,7 @@ with gr.Blocks() as demo:
2125
  # inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button])
2126
  ''' open ai | new'''
2127
  # chathmi4 = normal, chathmi5 = callback
2128
- inf4 = inputtext.submit(chathmi5, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
2129
  success(playsound1, None, voice_output, queue=True)#.\
2130
  # success(ClearAudio, None, voice_output)
2131
 
 
1683
  for next_token, content in stream(message):
1684
  temp = temp + content
1685
  history_int = history2 + [(None, temp)]
1686
+ history2 = history_int
1687
  yield(None, history_int, None, None)
1688
  elif agent is None:
1689
  response = asyncio.run(start_playwright(message))
1690
+ history2 = history2 + [(None, response)]
1691
+
1692
  time.sleep(0.1)
 
1693
  yield ["", history2, gr.update(visible = True), gr.update(visible = False)]
 
1694
 
1695
  # yield ["", history2, None, None]
1696
  print ("response of chatbot:", response)
 
2055
  # UserRecord.append((None, timestr+'\n'+WelcomeStr))
2056
  with gr.Column() as main2:
2057
  title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
2058
+ <center> v0.7.10: Powered by MECH Core Team - GPT4 REMOTE MODE"""),
2059
  chatbot = gr.Chatbot(
2060
  # avatar_images=((os.path.join(os.path.dirname(__file__),"User.png")), (os.path.join(os.path.dirname(__file__),"AI.png"))),
2061
  )
 
2125
  # inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button])
2126
  ''' open ai | new'''
2127
  # chathmi4 = normal, chathmi5 = callback
2128
+ inf4 = inputtext.submit(chathmi4, [inputtext, chatbot], [inputtext, chatbot, submit_button, stop_button]).\
2129
  success(playsound1, None, voice_output, queue=True)#.\
2130
  # success(ClearAudio, None, voice_output)
2131