starsnatched commited on
Commit
8c2d955
·
unverified ·
2 Parent(s): 34d3cc7 9b56a58

Merge pull request #89 from starsnatched/codex/fix--text--language-error-in-gr.code

Browse files
Files changed (1) hide show
  1. gradio_app.py +2 -2
gradio_app.py CHANGED
@@ -112,7 +112,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
112
  with gr.Tab("Chat"):
113
  session_dd = gr.Dropdown(["default"], label="Session", value="default")
114
  refresh = gr.Button("Refresh Sessions")
115
- chatbox = gr.Chatbot()
116
  msg = gr.Textbox(label="Message")
117
  send = gr.Button("Send")
118
 
@@ -122,7 +122,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
122
  table = gr.Dataframe(headers=["name", "is_dir"], datatype=["str", "bool"])
123
  file_path = gr.Textbox(label="File Path")
124
  load_btn = gr.Button("Load")
125
- content = gr.Code(label="Content", language="text")
126
  save_btn = gr.Button("Save")
127
  del_btn = gr.Button("Delete")
128
 
 
112
  with gr.Tab("Chat"):
113
  session_dd = gr.Dropdown(["default"], label="Session", value="default")
114
  refresh = gr.Button("Refresh Sessions")
115
+ chatbox = gr.Chatbot(type="messages")
116
  msg = gr.Textbox(label="Message")
117
  send = gr.Button("Send")
118
 
 
122
  table = gr.Dataframe(headers=["name", "is_dir"], datatype=["str", "bool"])
123
  file_path = gr.Textbox(label="File Path")
124
  load_btn = gr.Button("Load")
125
+ content = gr.Code(label="Content", language=None)
126
  save_btn = gr.Button("Save")
127
  del_btn = gr.Button("Delete")
128