svjack commited on
Commit
9c7ae16
·
1 Parent(s): cf8bc32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
  from llm_rs import AutoModel,SessionConfig,GenerationConfig,Precision,KnownModels
 
3
 
4
  repo_name = "svjack/ggml"
5
  file_name = "wizardlm-13b-v1.1-superhot-8k.ggmlv3.q4_0.bin"
@@ -46,6 +47,18 @@ with gr.Blocks(
46
  This demo uses the [rustformers/llm](https://github.com/rustformers/llm) library via [llm-rs](https://github.com/LLukas22/llm-rs-python) on 2 CPU cores.
47
  """
48
  )
 
 
 
 
 
 
 
 
 
 
 
 
49
  with gr.Row():
50
  with gr.Column():
51
  with gr.Row():
 
1
  import gradio as gr
2
  from llm_rs import AutoModel,SessionConfig,GenerationConfig,Precision,KnownModels
3
+ from huggingface_hub import space_info
4
 
5
  repo_name = "svjack/ggml"
6
  file_name = "wizardlm-13b-v1.1-superhot-8k.ggmlv3.q4_0.bin"
 
47
  This demo uses the [rustformers/llm](https://github.com/rustformers/llm) library via [llm-rs](https://github.com/LLukas22/llm-rs-python) on 2 CPU cores.
48
  """
49
  )
50
+
51
+ lora_repo = "svjack/chatglm3-few-shot"
52
+ lora_repo_link = "svjack/chatglm3-few-shot/?input_list_index=1"
53
+ emoji_info = space_info(lora_repo).__dict__["cardData"]["emoji"]
54
+ space_cnt = 1
55
+ task_name = "[---Emojis to Image Prompt---]"
56
+ gr.Markdown(
57
+ value=f"{markdown_exp_size} {space_cnt}. Check {task_name} few shot prompt in this repo by visit ChatGLM3 Few Shot space repo (click submit to activate) : [{lora_repo_link}](https://huggingface.co/spaces/{lora_repo_link}) {emoji_info}",
58
+ visible=True,
59
+ elem_id="selected_space",
60
+ )
61
+
62
  with gr.Row():
63
  with gr.Column():
64
  with gr.Row():