kenken999 commited on
Commit
989091a
β€’
1 Parent(s): c399afb
mysite/gradio/chat.py CHANGED
@@ -74,7 +74,7 @@ css = """
74
  # Gradio block
75
  chatbot2 = gr.Chatbot(height=450, placeholder=PLACEHOLDER, label="Gradio ChatInterface")
76
 
77
- with gr.Blocks(fill_height=True, css=css) as democ:
78
  # gr.Markdown(DESCRIPTION)
79
  # gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
80
  gr.ChatInterface(
 
74
  # Gradio block
75
  chatbot2 = gr.Chatbot(height=450, placeholder=PLACEHOLDER, label="Gradio ChatInterface")
76
 
77
+ with gr.Blocks(fill_height=True, css=css) as chat:
78
  # gr.Markdown(DESCRIPTION)
79
  # gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
80
  gr.ChatInterface(
mysite/gradio/gradio_config.py CHANGED
@@ -7,6 +7,7 @@ import importlib
7
  import os
8
  import pkgutil
9
  from routers.chat.chat import demo44 as demo4
 
10
 
11
  def include_gradio_interfaces():
12
  package_dir = "/home/user/app/routers"
@@ -139,8 +140,8 @@ def setup_gradio_interfaces():
139
 
140
  from routers.postg.gradio_app import crud_interface
141
 
142
- default_interfaces = [demo4,democs,crud_interface()]#,demo]
143
- default_names = ["OpenInterpreter","δ»•ζ§˜ζ›Έγ‹γ‚‰δ½œζˆ","Database",]#"demo"]
144
 
145
  gradio_interfaces, gradio_names = include_gradio_interfaces()
146
 
 
7
  import os
8
  import pkgutil
9
  from routers.chat.chat import demo44 as demo4
10
+ from mysite.gradio.chat import chat
11
 
12
  def include_gradio_interfaces():
13
  package_dir = "/home/user/app/routers"
 
140
 
141
  from routers.postg.gradio_app import crud_interface
142
 
143
+ default_interfaces = [chat,demo4,democs,crud_interface()]#,demo]
144
+ default_names = ["Chat","OpenInterpreter","δ»•ζ§˜ζ›Έγ‹γ‚‰δ½œζˆ","Database",]#"demo"]
145
 
146
  gradio_interfaces, gradio_names = include_gradio_interfaces()
147