Spaces:
Runtime error
Runtime error
Commit
·
25a6d74
1
Parent(s):
f2acce5
correct state
Browse files
app.py
CHANGED
@@ -1836,7 +1836,7 @@ with gr.Blocks() as demo:
|
|
1836 |
# )
|
1837 |
# main.textbox.submit(chathmi3, [main.textbox, main.chatbot], [main.textbox, main.chatbot])
|
1838 |
UserRecord = gr.State([])
|
1839 |
-
|
1840 |
timestr = time.strftime("%Y-%m-%d-%H:%M:%S")
|
1841 |
# Running_history = Running_history + [(None, 'Timestamp: '+timestr)]
|
1842 |
# # yield Running_history
|
@@ -1853,8 +1853,8 @@ with gr.Blocks() as demo:
|
|
1853 |
- Text to Image (forecast)
|
1854 |
"""
|
1855 |
# # Running_history = Running_history + [(None, timestr+'\n'+WelcomeStr)]
|
1856 |
-
UserRecord = UserRecord + [(None, timestr+'\n'+WelcomeStr)]
|
1857 |
-
|
1858 |
with gr.Column() as main2:
|
1859 |
title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
|
1860 |
<center> v0.7.1: Powered by MECH Core Team - GPT4 REMOTE MODE"""),
|
|
|
1836 |
# )
|
1837 |
# main.textbox.submit(chathmi3, [main.textbox, main.chatbot], [main.textbox, main.chatbot])
|
1838 |
UserRecord = gr.State([])
|
1839 |
+
UserRecord.append()
|
1840 |
timestr = time.strftime("%Y-%m-%d-%H:%M:%S")
|
1841 |
# Running_history = Running_history + [(None, 'Timestamp: '+timestr)]
|
1842 |
# # yield Running_history
|
|
|
1853 |
- Text to Image (forecast)
|
1854 |
"""
|
1855 |
# # Running_history = Running_history + [(None, timestr+'\n'+WelcomeStr)]
|
1856 |
+
# UserRecord = UserRecord + [(None, timestr+'\n'+WelcomeStr)]
|
1857 |
+
UserRecord.append((None, timestr+'\n'+WelcomeStr))
|
1858 |
with gr.Column() as main2:
|
1859 |
title = gr.Markdown("""# <center> STLA BABY - YOUR FRIENDLY GUIDE
|
1860 |
<center> v0.7.1: Powered by MECH Core Team - GPT4 REMOTE MODE"""),
|