Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -447,22 +447,22 @@ with gr.Blocks(css = css) as demo:
|
|
447 |
markdown_exp_size = "#"
|
448 |
lora_repo = "svjack/chatglm3-few-shot"
|
449 |
lora_repo_link = "svjack/chatglm3-few-shot/?input_list_index=0"
|
450 |
-
|
451 |
space_cnt = 1
|
452 |
task_name = "[---ChengYu to Emojis---]"
|
453 |
gr.Markdown(
|
454 |
-
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}) {
|
455 |
visible=True,
|
456 |
elem_id="selected_space",
|
457 |
)
|
458 |
|
459 |
lora_repo = "svjack/chatglm3-few-shot"
|
460 |
lora_repo_link = "svjack/chatglm3-few-shot/?input_list_index=1"
|
461 |
-
|
462 |
space_cnt = 2
|
463 |
task_name = "[---Emojis to Image Prompt---]"
|
464 |
gr.Markdown(
|
465 |
-
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}) {
|
466 |
visible=True,
|
467 |
elem_id="selected_space",
|
468 |
)
|
|
|
447 |
markdown_exp_size = "#"
|
448 |
lora_repo = "svjack/chatglm3-few-shot"
|
449 |
lora_repo_link = "svjack/chatglm3-few-shot/?input_list_index=0"
|
450 |
+
emoji_info = space_info(lora_repo).__dict__["cardData"]["emoji"]
|
451 |
space_cnt = 1
|
452 |
task_name = "[---ChengYu to Emojis---]"
|
453 |
gr.Markdown(
|
454 |
+
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}",
|
455 |
visible=True,
|
456 |
elem_id="selected_space",
|
457 |
)
|
458 |
|
459 |
lora_repo = "svjack/chatglm3-few-shot"
|
460 |
lora_repo_link = "svjack/chatglm3-few-shot/?input_list_index=1"
|
461 |
+
emoji_info = space_info(lora_repo).__dict__["cardData"]["emoji"]
|
462 |
space_cnt = 2
|
463 |
task_name = "[---Emojis to Image Prompt---]"
|
464 |
gr.Markdown(
|
465 |
+
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}",
|
466 |
visible=True,
|
467 |
elem_id="selected_space",
|
468 |
)
|