Spaces:
Running
on
Zero
Running
on
Zero
as
Browse files
app.py
CHANGED
@@ -416,6 +416,26 @@ chat_interface2 = gr.ChatInterface(
|
|
416 |
)
|
417 |
chat_interface2.queue()
|
418 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
419 |
# Gradio block
|
420 |
chatbot=gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='Gradio ChatInterface')
|
421 |
|
@@ -527,7 +547,7 @@ with gr.Blocks() as mark:
|
|
527 |
#demo.launch()
|
528 |
# キューを有効にする
|
529 |
chat_interface.queue()
|
530 |
-
tabs = gr.TabbedInterface([demo, create_ui(),democ,mark], ["AIで開発", "FineTuning","CHAT","AWS SERVERLESS SYSTEM"])
|
531 |
tabs.queue()
|
532 |
app.mount("/static", StaticFiles(directory="static", html=True), name="static")
|
533 |
app = gr.mount_gradio_app(app, tabs, "/")#, gradio_api_url="http://localhost:7860/")
|
|
|
416 |
)
|
417 |
chat_interface2.queue()
|
418 |
|
419 |
+
"""
|
420 |
+
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
421 |
+
"""
|
422 |
+
demo4 = gr.ChatInterface(
|
423 |
+
chat_with_interpreter,
|
424 |
+
additional_inputs=[
|
425 |
+
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
426 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
427 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
428 |
+
gr.Slider(
|
429 |
+
minimum=0.1,
|
430 |
+
maximum=1.0,
|
431 |
+
value=0.95,
|
432 |
+
step=0.05,
|
433 |
+
label="Top-p (nucleus sampling)",
|
434 |
+
),
|
435 |
+
],
|
436 |
+
)
|
437 |
+
|
438 |
+
|
439 |
# Gradio block
|
440 |
chatbot=gr.Chatbot(height=450, placeholder=PLACEHOLDER, label='Gradio ChatInterface')
|
441 |
|
|
|
547 |
#demo.launch()
|
548 |
# キューを有効にする
|
549 |
chat_interface.queue()
|
550 |
+
tabs = gr.TabbedInterface([demo4,demo, create_ui(),democ,mark], ["Interpreter","AIで開発", "FineTuning","CHAT","AWS SERVERLESS SYSTEM"])
|
551 |
tabs.queue()
|
552 |
app.mount("/static", StaticFiles(directory="static", html=True), name="static")
|
553 |
app = gr.mount_gradio_app(app, tabs, "/")#, gradio_api_url="http://localhost:7860/")
|