Spaces:
Runtime error
Runtime error
Commit
·
16eb92e
1
Parent(s):
9fa99a2
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ css = """
|
|
22 |
#submit {text-align: center; background-color: #e0e0e0;}
|
23 |
#label {font-size: 0.8em; padding: 0.5em; margin: 0;}
|
24 |
"""
|
25 |
-
with gr.Blocks(
|
26 |
history = gr.State([])
|
27 |
token_count = gr.State([])
|
28 |
promptTemplates = gr.State(load_template(get_template_names(plain=True)[0], mode=2))
|
@@ -68,7 +68,9 @@ with gr.Blocks(css=css) as demo:
|
|
68 |
downloadFile = gr.File(interactive=False)
|
69 |
gr.Markdown("""
|
70 |
<div align=center>you can follow the WeChat public account [45度科研人] and leave me a message!
|
71 |
-
<div align=center><img width = '200' height ='200' src ="https://dunazo.oss-cn-beijing.aliyuncs.com/blog/wechat-simple.png"
|
|
|
|
|
72 |
keyTxt.submit(submit_key, keyTxt, [user_api_key, status_display])
|
73 |
keyTxt.change(submit_key, keyTxt, [user_api_key, status_display])
|
74 |
# Chatbot
|
|
|
22 |
#submit {text-align: center; background-color: #e0e0e0;}
|
23 |
#label {font-size: 0.8em; padding: 0.5em; margin: 0;}
|
24 |
"""
|
25 |
+
with gr.Blocks() as demo:
|
26 |
history = gr.State([])
|
27 |
token_count = gr.State([])
|
28 |
promptTemplates = gr.State(load_template(get_template_names(plain=True)[0], mode=2))
|
|
|
68 |
downloadFile = gr.File(interactive=False)
|
69 |
gr.Markdown("""
|
70 |
<div align=center>you can follow the WeChat public account [45度科研人] and leave me a message!
|
71 |
+
<div align=center><img width = '200' height ='200' src ="https://dunazo.oss-cn-beijing.aliyuncs.com/blog/wechat-simple.png"/>
|
72 |
+
<img width = '170' height ='190' src ="https://dunazo.oss-cn-beijing.aliyuncs.com/blog/shoukuanma222.png"/>
|
73 |
+
</div>""")
|
74 |
keyTxt.submit(submit_key, keyTxt, [user_api_key, status_display])
|
75 |
keyTxt.change(submit_key, keyTxt, [user_api_key, status_display])
|
76 |
# Chatbot
|