ehristoforu commited on
Commit
9b7bb96
1 Parent(s): 2d56a10

Update webui.py

Browse files
Files changed (1) hide show
  1. webui.py +7 -3
webui.py CHANGED
@@ -35,7 +35,11 @@ history = []
35
 
36
  chatbot = gr.Chatbot(show_label=False, layout=chat_style, show_copy_button=True, height=500, min_width=180)
37
 
38
- with gr.Blocks(theme=theme, title=f"TensorLM v{tlm_version}", css="style.css") as webui:
 
 
 
 
39
  #refresh_model = gr.Button(value="Load model", interactive=True, scale=1)
40
  with gr.Row():
41
  with gr.Row(render=False, variant="panel") as sliders:
@@ -85,7 +89,7 @@ with gr.Blocks(theme=theme, title=f"TensorLM v{tlm_version}", css="style.css") a
85
  tabs_change = gr.Checkbox(label="Tabs", value=False, interactive=True)
86
  with gr.Row():
87
  with gr.Row(visible=False) as tabs:
88
- with gr.Tab("ModelGet"):
89
  gr.Markdown("## Download model from 🤗 HuggingFace.co")
90
  with gr.Row():
91
  repo_id = gr.Textbox(label="REPO_ID", value="ehristoforu/LLMs", lines=1, max_lines=1, interactive=False)
@@ -111,7 +115,7 @@ with gr.Blocks(theme=theme, title=f"TensorLM v{tlm_version}", css="style.css") a
111
  settings.render()
112
  with gr.Row():
113
  gr.Markdown(f"""
114
- <center><a href="https://github.com/ehristoforu/TensorLM-webui">v{tlm_version}</a> | <a href="/?view=api">API</a> | <a href="https://gradio.app">gradio 4.1.0</a> | <a href="https://github.com/ggerganov/llama.cpp">llama.cpp</a> | <a href="https://python.org">python</a> | <a href="https://huggingface.co/TheBloke?search_models=GGML">Suggested models</a></center>
115
  """, visible=footer_vis)
116
 
117
 
 
35
 
36
  chatbot = gr.Chatbot(show_label=False, layout=chat_style, show_copy_button=True, height=500, min_width=180)
37
 
38
+ with gr.Blocks(theme=theme, title=f"TensorLM v{tlm_version} Demo", css="style.css") as webui:
39
+ gr.Markdown("""
40
+ [**Run it local**](https://github.com/ehristoforu/TensorLM-webui)
41
+ """)
42
+
43
  #refresh_model = gr.Button(value="Load model", interactive=True, scale=1)
44
  with gr.Row():
45
  with gr.Row(render=False, variant="panel") as sliders:
 
89
  tabs_change = gr.Checkbox(label="Tabs", value=False, interactive=True)
90
  with gr.Row():
91
  with gr.Row(visible=False) as tabs:
92
+ with gr.Tab("ModelGet", visible=False):
93
  gr.Markdown("## Download model from 🤗 HuggingFace.co")
94
  with gr.Row():
95
  repo_id = gr.Textbox(label="REPO_ID", value="ehristoforu/LLMs", lines=1, max_lines=1, interactive=False)
 
115
  settings.render()
116
  with gr.Row():
117
  gr.Markdown(f"""
118
+ <center><a href="https://github.com/ehristoforu/TensorLM-webui">v{tlm_version}demo</a> | <a href="/?view=api">API</a> | <a href="https://gradio.app">gradio 4.1.0</a> | <a href="https://github.com/ggerganov/llama.cpp">llama.cpp</a> | <a href="https://python.org">python</a> | <a href="https://huggingface.co/TheBloke?search_models=GGML">Suggested models</a></center>
119
  """, visible=footer_vis)
120
 
121