CompactAI commited on
Commit
8f05360
·
verified ·
1 Parent(s): 5265333

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +1 -1
app.py CHANGED
@@ -3039,7 +3039,7 @@ _initial_version = _initial_versions[0] if _initial_versions else None
3039
  _initial_ckpt_labels = _ckpt_labels(_initial_version) if _initial_version else []
3040
  _mode_keys = list(MODES.keys())
3041
 
3042
- with gr.Blocks(title="CompactAI Models", theme=gr.themes.Soft()) as demo:
3043
  gr.Markdown(
3044
  "# CompactAI — TinyMemoryLM\n"
3045
  "Tiny recurrent-depth language models from [CompactAI-O](https://huggingface.co/CompactAI-O)."
@@ -3068,7 +3068,7 @@ with gr.Blocks(title="CompactAI Models", theme=gr.themes.Soft()) as demo:
3068
  c_use_custom, c_temp, c_topk, c_topp, c_minp, c_rep, c_ng, c_cap, c_lp, c_maxt, c_ctx, c_raw = _advanced_block()
3069
 
3070
  with gr.Column(scale=3):
3071
- chatbot = gr.Chatbot(label="Conversation", height=500, type="messages")
3072
  with gr.Row():
3073
  msg_box = gr.Textbox(placeholder="Type a message…", show_label=False, scale=5)
3074
  send_btn = gr.Button("Send", variant="primary", scale=1)
@@ -3148,4 +3148,4 @@ with gr.Blocks(title="CompactAI Models", theme=gr.themes.Soft()) as demo:
3148
 
3149
 
3150
  if __name__ == "__main__":
3151
- demo.launch()
 
3039
  _initial_ckpt_labels = _ckpt_labels(_initial_version) if _initial_version else []
3040
  _mode_keys = list(MODES.keys())
3041
 
3042
+ with gr.Blocks(title="CompactAI Models") as demo:
3043
  gr.Markdown(
3044
  "# CompactAI — TinyMemoryLM\n"
3045
  "Tiny recurrent-depth language models from [CompactAI-O](https://huggingface.co/CompactAI-O)."
 
3068
  c_use_custom, c_temp, c_topk, c_topp, c_minp, c_rep, c_ng, c_cap, c_lp, c_maxt, c_ctx, c_raw = _advanced_block()
3069
 
3070
  with gr.Column(scale=3):
3071
+ chatbot = gr.Chatbot(label="Conversation", height=500)
3072
  with gr.Row():
3073
  msg_box = gr.Textbox(placeholder="Type a message…", show_label=False, scale=5)
3074
  send_btn = gr.Button("Send", variant="primary", scale=1)
 
3148
 
3149
 
3150
  if __name__ == "__main__":
3151
+ demo.launch(theme=gr.themes.Soft())
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=4.44.0
2
  torch>=2.2.0
3
  huggingface_hub>=0.24.0
4
  datasets>=2.20.0
 
1
+ gradio>=6.0.0
2
  torch>=2.2.0
3
  huggingface_hub>=0.24.0
4
  datasets>=2.20.0