Spaces:
Sleeping
Sleeping
Commit
·
3cc90dd
1
Parent(s):
f799466
update
Browse files- .gitignore +1 -0
- app.py +11 -10
.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.ipynb_checkpoints
|
app.py
CHANGED
|
@@ -112,6 +112,17 @@ with gr.Blocks() as demo:
|
|
| 112 |
""")
|
| 113 |
with gr.Row():
|
| 114 |
with gr.Column(scale=10):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
with gr.Row():
|
| 116 |
with gr.Column():
|
| 117 |
planner = gr.Chatbot(label='planner',
|
|
@@ -127,16 +138,6 @@ with gr.Blocks() as demo:
|
|
| 127 |
show_copy_button=True,
|
| 128 |
bubble_full_width=False,
|
| 129 |
render_markdown=True)
|
| 130 |
-
with gr.Row():
|
| 131 |
-
user_input = gr.Textbox(show_label=False,
|
| 132 |
-
placeholder='帮我搜索一下 InternLM 开源体系',
|
| 133 |
-
lines=5,
|
| 134 |
-
container=False)
|
| 135 |
-
with gr.Row():
|
| 136 |
-
with gr.Column(scale=2):
|
| 137 |
-
submitBtn = gr.Button('Submit')
|
| 138 |
-
with gr.Column(scale=1, min_width=20):
|
| 139 |
-
emptyBtn = gr.Button('Clear History')
|
| 140 |
|
| 141 |
def user(query, history):
|
| 142 |
return '', history + [[query, '']]
|
|
|
|
| 112 |
""")
|
| 113 |
with gr.Row():
|
| 114 |
with gr.Column(scale=10):
|
| 115 |
+
with gr.Row():
|
| 116 |
+
user_input = gr.Textbox(show_label=False,
|
| 117 |
+
placeholder='帮我搜索一下 InternLM 开源体系',
|
| 118 |
+
lines=5,
|
| 119 |
+
container=False)
|
| 120 |
+
with gr.Row():
|
| 121 |
+
with gr.Column(scale=2):
|
| 122 |
+
submitBtn = gr.Button('Submit')
|
| 123 |
+
with gr.Column(scale=1, min_width=20):
|
| 124 |
+
emptyBtn = gr.Button('Clear History')
|
| 125 |
+
|
| 126 |
with gr.Row():
|
| 127 |
with gr.Column():
|
| 128 |
planner = gr.Chatbot(label='planner',
|
|
|
|
| 138 |
show_copy_button=True,
|
| 139 |
bubble_full_width=False,
|
| 140 |
render_markdown=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
|
| 142 |
def user(query, history):
|
| 143 |
return '', history + [[query, '']]
|