kwabs22 commited on
Commit
2d80691
·
1 Parent(s): 31e9fea

Test mermaid configs load

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -768,6 +768,7 @@ with gr.Blocks() as demo:
768
  button.click(llmguide_generate_response, inputs=[FAQCustomButtonInput, gr.State(index), gr.State(category_name)], outputs=FAQMainOutput)
769
 
770
  with gr.Tab("General RAG (Pathfinder?) Attempt"):
 
771
  gr.HTML("Placeholder for weak RAG Type Charcter interaction test aka input for JSON 'Knowledge Base' Input")
772
  # gr.Interface(
773
  # fn=rag,
@@ -828,10 +829,12 @@ with gr.Blocks() as demo:
828
  with gr.Tab("Structures for interesting timeline progression"):
829
  with gr.Tab("Some Example Structures and considerations"):
830
  gr.HTML("Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story")
831
- gr.Code(value=mermaidstorystructures['Parallel Storylines Progression'])
 
 
 
832
 
833
- with gr.Tab(""):
834
- gr.HTML("Placeholder for mermaid diagrams")
835
  mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
836
  mermaideditoriframe = gr.HTML("")
837
  mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
@@ -1170,7 +1173,7 @@ Creating more diverse paths through the game""")
1170
 
1171
  with gr.Accordion("LLM HF Spaces/Sites (Click Here to Open) - Ask for a story and suggestions based on the autoconfig", open=False):
1172
  with gr.Row():
1173
- linktochat = gr.Dropdown(choices=["https://labs.perplexity.ai/", "https://chat.lmsys.org", "https://sdk.vercel.ai/docs", "https://qwen-qwen-max-0428.hf.space", "https://cohereforai-c4ai-command-r-plus.hf.space", "https://huggingface.co/spaces/eswardivi/Phi-3-mini-128k-instruct", "https://eswardivi-phi-3-mini-4k-instruct.hf.space", "https://cyzgab-catch-me-if-you-can.hf.space", "https://snowflake-snowflake-arctic-st-demo.hf.space", "https://qwen-qwen1-5-110b-chat-demo.hf.space", "https://ysharma-chat-with-meta-llama3-8b.hf.space", "https://databricks-dbrx-instruct.hf.space", "https://qwen-qwen1-5-moe-a2-7b-chat-demo.hf.space", "https://cohereforai-c4ai-command-r-v01.hf.space", "https://ehristoforu-mixtral-46-7b-chat.hf.space", "https://stabilityai-stablelm-2-1-6b-zephyr.hf.space", "https://qwen-qwen1-5-72b-chat.hf.space", "https://deepseek-ai-deepseek-coder-7b-instruct.hf.space", "https://01-ai-yi-34b-chat.hf.space", "https://ysharma-zephyr-playground.hf.space", "https://huggingfaceh4-zephyr-chat.hf.space", "https://osanseviero-mistral-super-fast.hf.space", "https://artificialguybr-qwen-14b-chat-demo.hf.space", "https://huggingface-projects-llama-2-7b-chat.hf.space", "https://ysharma-explore-llamav2-with-tgi.hf.space", "https://mosaicml-mpt-30b-chat.hf.space", "https://huggingfaceh4-falcon-chat.hf.space", "https://uwnlp-guanaco-playground-tgi.hf.space", "https://stabilityai-stablelm-tuned-alpha-chat.hf.space", "https://mosaicml-mpt-7b-storywriter.hf.space", "https://huggingfaceh4-starchat-playground.hf.space", "https://bigcode-bigcode-playground.hf.space", "https://mosaicml-mpt-7b-chat.hf.space", "https://huggingchat-chat-ui.hf.space", "https://togethercomputer-openchatkit.hf.space"], label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
1174
  chatspacebtn = gr.Button("Use the chosen URL to load interface with a chat model. For sdk.vercel click the chat button on the top left. For lymsys / chat arena copy the link and use a new tab")
1175
  chatspace = gr.HTML("Chat Space Chosen will load here")
1176
  chatspacebtn.click(display_website, inputs=linktochat, outputs=chatspace)
@@ -1190,6 +1193,7 @@ Creating more diverse paths through the game""")
1190
  with gr.Accordion("Media understanding model Spaces/Sites (Click Here to Open)", open=False):
1191
  with gr.Row():
1192
  linktomediaunderstandingspace = gr.Dropdown(choices=[ "--Weak Audio Understanding = Audio to text, Weak Video Understanding = Video to Image to Image Understanding", "https://skalskip-florence-2-video.hf.space", "https://kingnish-opengpt-4o.hf.space",
 
1193
  "--Image Understanding--", "https://qnguyen3-nanollava.hf.space", "https://skalskip-better-florence-2.hf.space", ],
1194
  label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
1195
  mediaunderstandingspacebtn = gr.Button("Use the chosen URL to load interface with a media understanding space")
 
768
  button.click(llmguide_generate_response, inputs=[FAQCustomButtonInput, gr.State(index), gr.State(category_name)], outputs=FAQMainOutput)
769
 
770
  with gr.Tab("General RAG (Pathfinder?) Attempt"):
771
+ gr.HTML("https://huggingface.co/spaces/mteb/leaderboard - Source for SOTA - current using all-MiniLM-L6-v2")
772
  gr.HTML("Placeholder for weak RAG Type Charcter interaction test aka input for JSON 'Knowledge Base' Input")
773
  # gr.Interface(
774
  # fn=rag,
 
829
  with gr.Tab("Structures for interesting timeline progression"):
830
  with gr.Tab("Some Example Structures and considerations"):
831
  gr.HTML("Placeholder - Considerations - Story from the perspective of Main character or NPC in the LLM genereated story")
832
+ with gr.Accordion("Mermaid Structures - click to open", open=False):
833
+ for key, item in mermaidstorystructures.items():
834
+ gr.Code(item, label=key)
835
+ #gr.Code(value=mermaidstorystructures['Parallel Storylines Progression'])
836
 
837
+ with gr.Tab("Display or edit a mermaid structure"):
 
838
  mermaideditoriframebtn = gr.Button("Load Mermaid Editor")
839
  mermaideditoriframe = gr.HTML("")
840
  mermaideditoriframebtn.click(fn=lambda x: "<iframe src='https://mermaid.live/' width='100%' height='1000px'></iframe>", outputs=mermaideditoriframe)
 
1173
 
1174
  with gr.Accordion("LLM HF Spaces/Sites (Click Here to Open) - Ask for a story and suggestions based on the autoconfig", open=False):
1175
  with gr.Row():
1176
+ linktochat = gr.Dropdown(choices=["https://labs.perplexity.ai/", "https://chat.lmsys.org", "https://sdk.vercel.ai/docs", "https://gokaygokay-gemma-2-llamacpp.hf.space" "https://qwen-qwen-max-0428.hf.space", "https://cohereforai-c4ai-command-r-plus.hf.space", "https://huggingface.co/spaces/eswardivi/Phi-3-mini-128k-instruct", "https://eswardivi-phi-3-mini-4k-instruct.hf.space", "https://cyzgab-catch-me-if-you-can.hf.space", "https://snowflake-snowflake-arctic-st-demo.hf.space", "https://qwen-qwen1-5-110b-chat-demo.hf.space", "https://ysharma-chat-with-meta-llama3-8b.hf.space", "https://databricks-dbrx-instruct.hf.space", "https://qwen-qwen1-5-moe-a2-7b-chat-demo.hf.space", "https://cohereforai-c4ai-command-r-v01.hf.space", "https://ehristoforu-mixtral-46-7b-chat.hf.space", "https://stabilityai-stablelm-2-1-6b-zephyr.hf.space", "https://qwen-qwen1-5-72b-chat.hf.space", "https://deepseek-ai-deepseek-coder-7b-instruct.hf.space", "https://01-ai-yi-34b-chat.hf.space", "https://ysharma-zephyr-playground.hf.space", "https://huggingfaceh4-zephyr-chat.hf.space", "https://osanseviero-mistral-super-fast.hf.space", "https://artificialguybr-qwen-14b-chat-demo.hf.space", "https://huggingface-projects-llama-2-7b-chat.hf.space", "https://ysharma-explore-llamav2-with-tgi.hf.space", "https://mosaicml-mpt-30b-chat.hf.space", "https://huggingfaceh4-falcon-chat.hf.space", "https://uwnlp-guanaco-playground-tgi.hf.space", "https://stabilityai-stablelm-tuned-alpha-chat.hf.space", "https://mosaicml-mpt-7b-storywriter.hf.space", "https://huggingfaceh4-starchat-playground.hf.space", "https://bigcode-bigcode-playground.hf.space", "https://mosaicml-mpt-7b-chat.hf.space", "https://huggingchat-chat-ui.hf.space", "https://togethercomputer-openchatkit.hf.space"], label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
1177
  chatspacebtn = gr.Button("Use the chosen URL to load interface with a chat model. For sdk.vercel click the chat button on the top left. For lymsys / chat arena copy the link and use a new tab")
1178
  chatspace = gr.HTML("Chat Space Chosen will load here")
1179
  chatspacebtn.click(display_website, inputs=linktochat, outputs=chatspace)
 
1193
  with gr.Accordion("Media understanding model Spaces/Sites (Click Here to Open)", open=False):
1194
  with gr.Row():
1195
  linktomediaunderstandingspace = gr.Dropdown(choices=[ "--Weak Audio Understanding = Audio to text, Weak Video Understanding = Video to Image to Image Understanding", "https://skalskip-florence-2-video.hf.space", "https://kingnish-opengpt-4o.hf.space",
1196
+ "--Video Understanding--", "https://ivgsz-flash-vstream-demo.hf.space",
1197
  "--Image Understanding--", "https://qnguyen3-nanollava.hf.space", "https://skalskip-better-florence-2.hf.space", ],
1198
  label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
1199
  mediaunderstandingspacebtn = gr.Button("Use the chosen URL to load interface with a media understanding space")