curry tang
commited on
Commit
·
35acdb0
1
Parent(s):
27f9613
update
Browse files
app.py
CHANGED
@@ -153,8 +153,8 @@ def translate_doc(_language_input, _language_output, _doc, _chat):
|
|
153 |
|
154 |
|
155 |
with gr.Blocks() as app:
|
|
|
156 |
with gr.Tab('智能聊天'):
|
157 |
-
chat_engine = gr.State(value=None)
|
158 |
with gr.Row():
|
159 |
with gr.Column(scale=2, min_width=600):
|
160 |
chatbot = gr.ChatInterface(
|
@@ -220,7 +220,6 @@ with gr.Blocks() as app:
|
|
220 |
)
|
221 |
|
222 |
with gr.Tab('代码优化'):
|
223 |
-
chat_engine = gr.State(value=None)
|
224 |
with gr.Row():
|
225 |
with gr.Column(scale=2):
|
226 |
with gr.Row(variant="panel"):
|
@@ -244,7 +243,6 @@ with gr.Blocks() as app:
|
|
244 |
function_gen_btn.click(fn=function_gen, inputs=[code_type, code, chat_engine], outputs=[code_result])
|
245 |
|
246 |
with gr.Tab('职业工作'):
|
247 |
-
chat_engine = gr.State(value=None)
|
248 |
with gr.Row():
|
249 |
with gr.Column(scale=2):
|
250 |
with gr.Row(variant="panel"):
|
@@ -270,7 +268,8 @@ with gr.Blocks() as app:
|
|
270 |
doc_gen_btn = gr.Button('文档润色')
|
271 |
translate_doc_btn.click(fn=translate_doc, inputs=[language_input, language_output, doc, chat_engine], outputs=[code_result])
|
272 |
with gr.Tab('生活娱乐'):
|
273 |
-
|
|
|
274 |
|
275 |
|
276 |
app.launch(debug=settings.debug, show_api=False)
|
|
|
153 |
|
154 |
|
155 |
with gr.Blocks() as app:
|
156 |
+
chat_engine = gr.State(value=None)
|
157 |
with gr.Tab('智能聊天'):
|
|
|
158 |
with gr.Row():
|
159 |
with gr.Column(scale=2, min_width=600):
|
160 |
chatbot = gr.ChatInterface(
|
|
|
220 |
)
|
221 |
|
222 |
with gr.Tab('代码优化'):
|
|
|
223 |
with gr.Row():
|
224 |
with gr.Column(scale=2):
|
225 |
with gr.Row(variant="panel"):
|
|
|
243 |
function_gen_btn.click(fn=function_gen, inputs=[code_type, code, chat_engine], outputs=[code_result])
|
244 |
|
245 |
with gr.Tab('职业工作'):
|
|
|
246 |
with gr.Row():
|
247 |
with gr.Column(scale=2):
|
248 |
with gr.Row(variant="panel"):
|
|
|
268 |
doc_gen_btn = gr.Button('文档润色')
|
269 |
translate_doc_btn.click(fn=translate_doc, inputs=[language_input, language_output, doc, chat_engine], outputs=[code_result])
|
270 |
with gr.Tab('生活娱乐'):
|
271 |
+
with gr.Row():
|
272 |
+
gr.Button("test")
|
273 |
|
274 |
|
275 |
app.launch(debug=settings.debug, show_api=False)
|