Spaces:
Runtime error
Runtime error
Commit
·
f8aab44
1
Parent(s):
31f7749
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,68 +17,7 @@ gr.Chatbot.postprocess = postprocess
|
|
| 17 |
with open("css.css", "r", encoding="utf-8") as f:
|
| 18 |
css = f.read()
|
| 19 |
|
| 20 |
-
with gr.Blocks(
|
| 21 |
-
css=css
|
| 22 |
-
# ,
|
| 23 |
-
# theme=gr.themes.Soft(
|
| 24 |
-
# primary_hue=gr.themes.Color(
|
| 25 |
-
# c50="#708090",
|
| 26 |
-
# c100="#708090",
|
| 27 |
-
# c200="#708090",
|
| 28 |
-
# c300="#708090",
|
| 29 |
-
# c400="#708090",
|
| 30 |
-
# c500="#708090",
|
| 31 |
-
# c600="#708090",
|
| 32 |
-
# c700="#708090",
|
| 33 |
-
# c800="#708090",
|
| 34 |
-
# c900="#708090",
|
| 35 |
-
# c950="#708090",
|
| 36 |
-
# ),
|
| 37 |
-
# secondary_hue=gr.themes.Color(
|
| 38 |
-
# c50="#576b95",
|
| 39 |
-
# c100="#576b95",
|
| 40 |
-
# c200="#576b95",
|
| 41 |
-
# c300="#576b95",
|
| 42 |
-
# c400="#576b95",
|
| 43 |
-
# c500="#576b95",
|
| 44 |
-
# c600="#576b95",
|
| 45 |
-
# c700="#576b95",
|
| 46 |
-
# c800="#576b95",
|
| 47 |
-
# c900="#576b95",
|
| 48 |
-
# c950="#576b95",
|
| 49 |
-
# ),
|
| 50 |
-
# neutral_hue=gr.themes.Color(
|
| 51 |
-
# name="gray",
|
| 52 |
-
# c50="#f9fafb",
|
| 53 |
-
# c100="#f3f4f6",
|
| 54 |
-
# c200="#e5e7eb",
|
| 55 |
-
# c300="#d1d5db",
|
| 56 |
-
# c400="#B2B2B2",
|
| 57 |
-
# c500="#808080",
|
| 58 |
-
# c600="#636363",
|
| 59 |
-
# c700="#515151",
|
| 60 |
-
# c800="#393939",
|
| 61 |
-
# c900="#272727",
|
| 62 |
-
# c950="#171717",
|
| 63 |
-
# ),
|
| 64 |
-
# radius_size=gr.themes.sizes.radius_sm,
|
| 65 |
-
# ).set(
|
| 66 |
-
# button_primary_background_fill="#708090",
|
| 67 |
-
# button_primary_background_fill_dark="#708090",
|
| 68 |
-
# button_primary_background_fill_hover="#708090",
|
| 69 |
-
# button_primary_border_color="#778899",
|
| 70 |
-
# button_primary_border_color_dark="#778899",
|
| 71 |
-
# button_primary_text_color="#FFFFFF",
|
| 72 |
-
# button_primary_text_color_dark="#FFFFFF",
|
| 73 |
-
# button_secondary_background_fill="#F2F2F2",
|
| 74 |
-
# button_secondary_background_fill_dark="#2B2B2B",
|
| 75 |
-
# button_secondary_text_color="#393939",
|
| 76 |
-
# button_secondary_text_color_dark="#FFFFFF",
|
| 77 |
-
# block_title_text_color="*primary_500",
|
| 78 |
-
# block_title_background_fill="*primary_100",
|
| 79 |
-
# input_background_fill="#F6F6F6",
|
| 80 |
-
# ),
|
| 81 |
-
) as demo:
|
| 82 |
|
| 83 |
history = gr.State([])
|
| 84 |
token_count = gr.State([])
|
|
@@ -124,7 +63,7 @@ with gr.Blocks(
|
|
| 124 |
with gr.Column(scale=1):
|
| 125 |
downloadFile = gr.File(interactive=False)
|
| 126 |
gr.Markdown("""
|
| 127 |
-
|
| 128 |
<div style="display:flex; justify-content:center;">
|
| 129 |
<img src="https://dunazo.oss-cn-beijing.aliyuncs.com/blog/wechat-simple.png" style="margin-right:25px;width:200px;height:200px;">
|
| 130 |
<div style="width:25px;"></div>
|
|
|
|
| 17 |
with open("css.css", "r", encoding="utf-8") as f:
|
| 18 |
css = f.read()
|
| 19 |
|
| 20 |
+
with gr.Blocks(css=css) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
history = gr.State([])
|
| 23 |
token_count = gr.State([])
|
|
|
|
| 63 |
with gr.Column(scale=1):
|
| 64 |
downloadFile = gr.File(interactive=False)
|
| 65 |
gr.Markdown("""
|
| 66 |
+
### <div align=center>you can follow the WeChat public account [45度科研人] and leave me a message! </div>
|
| 67 |
<div style="display:flex; justify-content:center;">
|
| 68 |
<img src="https://dunazo.oss-cn-beijing.aliyuncs.com/blog/wechat-simple.png" style="margin-right:25px;width:200px;height:200px;">
|
| 69 |
<div style="width:25px;"></div>
|