Spaces:
Running
on
Zero
Running
on
Zero
kwabs22
commited on
Commit
·
3dc2230
1
Parent(s):
fdeec3f
Integration of discussions with LLMs?
Browse files
app.py
CHANGED
@@ -718,8 +718,12 @@ with gr.Blocks() as demo:
|
|
718 |
with gr.Accordion("Qwen 0.5B as Space Guide Tests", open=False):
|
719 |
gr.HTML("Placeholder for FAQ type - front end as prompt engineering for the first message to force direction of conversion")
|
720 |
gr.HTML("Placeholder for weak RAG Type - Explanations through an opensource embeddings engine")
|
|
|
|
|
721 |
gr.Markdown("# Qwen-0.5B-Instruct Language Model")
|
722 |
gr.Markdown("This demo uses the Qwen-0.5B-Instruct model to generate responses based on your input.")
|
|
|
|
|
723 |
|
724 |
with gr.Row():
|
725 |
with gr.Column():
|
@@ -886,7 +890,7 @@ with gr.Blocks() as demo:
|
|
886 |
}
|
887 |
"""
|
888 |
|
889 |
-
with gr.Accordion("Decisions Creation"):
|
890 |
with gr.Tab("Timeline Guide for Config Generation or evelution"):
|
891 |
with gr.Accordion("Empty Config shape for explaining to LLM", open=False):
|
892 |
gr.HTML(f"placeholder for current empty JSON config shape")
|
@@ -950,10 +954,29 @@ with gr.Blocks() as demo:
|
|
950 |
with gr.Tab("Config Writing Considerations"):
|
951 |
gr.HTML("Player Stats, Inventory and NPCS not implemented yet, so traversal type games best aka graph like structures <br> Game is like a universal translator so any concept can be covered")
|
952 |
|
953 |
-
with gr.Accordion("Config Crafting Progression - click to open", open=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
954 |
with gr.Tab("Main areas of considerations"):
|
955 |
with gr.Tab("Mermaid Graphs and Nesting"):
|
956 |
-
gr.HTML("Claude Artifacts to illustrate <br> https://claude.site/artifacts/265e9242-2093-46e1-9011-ed6ad938be90?fullscreen=false <br> ")
|
957 |
gr.HTML("")
|
958 |
with gr.Tab(""):
|
959 |
gr.HTML("")
|
@@ -1713,12 +1736,13 @@ Would you like me to elaborate on any of these ideas or show how to implement th
|
|
1713 |
with gr.Accordion("Image Gen or Animation HF Spaces/Sites (Click Here to Open) - Have to download and upload at the the top", open=False):
|
1714 |
# with gr.Tabs("General"):
|
1715 |
with gr.Row():
|
1716 |
-
linktoimagegen = gr.Dropdown(choices=["--General--", "https://prodia-sdxl-stable-diffusion-xl.hf.space", "https://prodia-fast-stable-diffusion.hf.space", "https://bytedance-hyper-sdxl-1step-t2i.hf.space", "https://multimodalart-cosxl.hf.space", "https://cagliostrolab-animagine-xl-3-1.hf.space",
|
1717 |
"--Speed--", "https://radames-real-time-text-to-image-sdxl-lightning.hf.space", "https://ap123-sdxl-lightning.hf.space",
|
1718 |
"--LORA Support--", "https://artificialguybr-artificialguybr-demo-lora.hf.space", "https://artificialguybr-studio-ghibli-lora-sdxl.hf.space", "https://artificialguybr-pixel-art-generator.hf.space", "https://fffiloni-sdxl-control-loras.hf.space", "https://ehristoforu-dalle-3-xl-lora-v2.hf.space",
|
1719 |
"--Image to Image--", "https://lllyasviel-ic-light.hf.space", "https://gparmar-img2img-turbo-sketch.hf.space",
|
1720 |
-
"--Control of Pose--", "https://instantx-instantid.hf.space", "https://modelscope-transferanything.hf.space",
|
1721 |
-
"--Control of Shapes--", "https://linoyts-scribble-sdxl-flash.hf.space",
|
|
|
1722 |
imagegenspacebtn = gr.Button("Use the chosen URL to load interface with a image generation model")
|
1723 |
|
1724 |
imagegenspace = gr.HTML("Image Space Chosen will load here")
|
@@ -1728,11 +1752,8 @@ Would you like me to elaborate on any of these ideas or show how to implement th
|
|
1728 |
gr.HTML("Concept Art, UI elements, Static/3D Characters, Environments and Objects")
|
1729 |
gr.HTML("Image Caption = https://huggingface.co/spaces/microsoft/Promptist, https://huggingface.co/spaces/gokaygokay/SD3-Long-Captioner, https://huggingface.co/spaces/gokaygokay/Florence-2, ")
|
1730 |
gr.HTML("Images Generation Portraits = https://huggingface.co/spaces/okaris/omni-zero")
|
1731 |
-
gr.HTML("Images Generation General
|
1732 |
gr.HTML("Images Generation Posters with text - https://huggingface.co/spaces/GlyphByT5/Glyph-SDXL-v2")
|
1733 |
-
gr.HTML("Images Generation Very Specific position and shape - https://huggingface.co/spaces/InstantX/InstantID (more of a scpaceoooo)")
|
1734 |
-
gr.HTML("Images Generation Non-english prompt support = Chinese - https://huggingface.co/spaces/gokaygokay/Kolors")
|
1735 |
-
gr.HTML("Images Generation - Change pose of the image but keep face https://huggingface.co/spaces/InstantX/InstantID")
|
1736 |
gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/spaces/EPFL-VILAB/4M, https://huggingface.co/spaces/EPFL-VILAB/MultiMAE ")
|
1737 |
gr.HTML("SVG Generation = Coding models / SOTA LLM ")
|
1738 |
gr.HTML("Images Generation - Upscaling - https://huggingface.co/spaces/gokaygokay/Tile-Upscaler")
|
@@ -1746,8 +1767,7 @@ Would you like me to elaborate on any of these ideas or show how to implement th
|
|
1746 |
with gr.Row():
|
1747 |
linktovideogenspace = gr.Dropdown(choices=["--Genral--", "https://kadirnar-open-sora.hf.space",
|
1748 |
"--Talking Portrait--", "https://fffiloni-tts-hallo-talking-portrait.hf.space",
|
1749 |
-
"--Gif--", "https://wangfuyun-animatelcm-svd.hf.space", "https://bytedance-animatediff-lightning.hf.space", "https://wangfuyun-animatelcm.hf.space", "https://guoyww-animatediff.hf.space",
|
1750 |
-
"--ImgtoImg based video--"],
|
1751 |
label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
|
1752 |
videogenspacebtn = gr.Button("Use the chosen URL to load interface with video generation")
|
1753 |
videogenspace = gr.HTML("Video Space Chosen will load here")
|
@@ -1766,7 +1786,7 @@ Would you like me to elaborate on any of these ideas or show how to implement th
|
|
1766 |
with gr.Tab("Audio"):
|
1767 |
with gr.Accordion("3D Model Spaces/Sites (Click Here to Open) - Image to Blender?", open=False):
|
1768 |
with gr.Row():
|
1769 |
-
linktoaudiiogenspace = gr.Dropdown(choices=["General", "",
|
1770 |
"--Talking Portrait--","https://fffiloni-tts-hallo-talking-portrait.hf.space"],
|
1771 |
label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
|
1772 |
audiiogenspacebtn = gr.Button("Use the chosen URL to load interface with audio generation")
|
|
|
718 |
with gr.Accordion("Qwen 0.5B as Space Guide Tests", open=False):
|
719 |
gr.HTML("Placeholder for FAQ type - front end as prompt engineering for the first message to force direction of conversion")
|
720 |
gr.HTML("Placeholder for weak RAG Type - Explanations through an opensource embeddings engine")
|
721 |
+
("Placeholder for https://huggingface.co/h2oai/h2o-danube3-500m-chat-GGUF as alternative")
|
722 |
+
("Placeholder for qwen 2 72b as alternative use checkbox and gradio client api call")
|
723 |
gr.Markdown("# Qwen-0.5B-Instruct Language Model")
|
724 |
gr.Markdown("This demo uses the Qwen-0.5B-Instruct model to generate responses based on your input.")
|
725 |
+
gr.HTML("Example prompt: <br>I am writing a story about a chef. please write dishes to appear on the menu. <br>What are the most common decisions that a chef story would include?")
|
726 |
+
gr.HTML("Continue this config - Paste any complete block of the config")
|
727 |
|
728 |
with gr.Row():
|
729 |
with gr.Column():
|
|
|
890 |
}
|
891 |
"""
|
892 |
|
893 |
+
with gr.Accordion("Decisions Creation to Story to Config Conversation", open=False):
|
894 |
with gr.Tab("Timeline Guide for Config Generation or evelution"):
|
895 |
with gr.Accordion("Empty Config shape for explaining to LLM", open=False):
|
896 |
gr.HTML(f"placeholder for current empty JSON config shape")
|
|
|
954 |
with gr.Tab("Config Writing Considerations"):
|
955 |
gr.HTML("Player Stats, Inventory and NPCS not implemented yet, so traversal type games best aka graph like structures <br> Game is like a universal translator so any concept can be covered")
|
956 |
|
957 |
+
with gr.Accordion("Existing Config Crafting Progression - click to open", open=False):
|
958 |
+
with gr.Tab("Quick Ways to evaluate current config"):
|
959 |
+
gr.HTML("Ask SOTA LLMs This prompt: <br> This config is for a basic text based game engine. I dont have any structural metrics to assess the quality of the config. What JSON things can we look at to see if it may be too bland for a person testing the game? <br> Then Paste the Config with the prompt")
|
960 |
+
gr.HTML("""Original Claude 3.5 Sonnet Response snippets: <br>
|
961 |
+
Limited state variety: With only 13 states across 5 locations, the game might feel short and lacking in diversity. Consider adding more locations or states within existing locations.
|
962 |
+
Low average choices: An average of 1.92 choices per state might make the game feel linear. Increasing the number of choices in more states could improve player engagement.
|
963 |
+
Limited consequences: Only 3 states have consequences, which might make player choices feel less impactful. Adding more consequences could increase the sense of agency.
|
964 |
+
Short descriptions: The average description length of 13.15 words might not provide enough detail to immerse players. Consider expanding descriptions to create a richer narrative.
|
965 |
+
Lack of media: No states currently use media elements, which could make the game feel less engaging. Adding images, sound effects, or other media could enhance the player experience.
|
966 |
+
Limited narrative branching: While there are some loops and choices, the overall structure is relatively linear. Adding more branching paths could increase replayability and player interest.
|
967 |
+
|
968 |
+
To make the game less bland, consider:
|
969 |
+
|
970 |
+
Adding more states and locations
|
971 |
+
Increasing the number of choices in each state
|
972 |
+
Implementing more consequences for player actions
|
973 |
+
Expanding descriptions to create a richer narrative
|
974 |
+
Incorporating media elements
|
975 |
+
Creating more diverse paths through the game""")
|
976 |
+
|
977 |
with gr.Tab("Main areas of considerations"):
|
978 |
with gr.Tab("Mermaid Graphs and Nesting"):
|
979 |
+
gr.HTML("Claude Artifacts to illustrate <br> Nsted Structure - https://claude.site/artifacts/4a910d81-1541-49f4-8531-4f27fe56cd1e <br> https://claude.site/artifacts/265e9242-2093-46e1-9011-ed6ad938be90?fullscreen=false <br> ")
|
980 |
gr.HTML("")
|
981 |
with gr.Tab(""):
|
982 |
gr.HTML("")
|
|
|
1736 |
with gr.Accordion("Image Gen or Animation HF Spaces/Sites (Click Here to Open) - Have to download and upload at the the top", open=False):
|
1737 |
# with gr.Tabs("General"):
|
1738 |
with gr.Row():
|
1739 |
+
linktoimagegen = gr.Dropdown(choices=["--General--", "https://pixart-alpha-pixart-sigma.hf.space", "https://stabilityai-stable-diffusion-3-medium.hf.space", "https://gokaygokay-kolors.hf.space", "https://prodia-sdxl-stable-diffusion-xl.hf.space", "https://prodia-fast-stable-diffusion.hf.space", "https://bytedance-hyper-sdxl-1step-t2i.hf.space", "https://multimodalart-cosxl.hf.space", "https://cagliostrolab-animagine-xl-3-1.hf.space", "https://stabilityai-stable-diffusion.hf.space",
|
1740 |
"--Speed--", "https://radames-real-time-text-to-image-sdxl-lightning.hf.space", "https://ap123-sdxl-lightning.hf.space",
|
1741 |
"--LORA Support--", "https://artificialguybr-artificialguybr-demo-lora.hf.space", "https://artificialguybr-studio-ghibli-lora-sdxl.hf.space", "https://artificialguybr-pixel-art-generator.hf.space", "https://fffiloni-sdxl-control-loras.hf.space", "https://ehristoforu-dalle-3-xl-lora-v2.hf.space",
|
1742 |
"--Image to Image--", "https://lllyasviel-ic-light.hf.space", "https://gparmar-img2img-turbo-sketch.hf.space",
|
1743 |
+
"--Control of Pose--", "https://instantx-instantid.hf.space", "https://modelscope-transferanything.hf.space", "https://okaris-omni-zero.hf.space"
|
1744 |
+
"--Control of Shapes--", "https://linoyts-scribble-sdxl-flash.hf.space",
|
1745 |
+
"--Foreign Language Input--", ""], label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
|
1746 |
imagegenspacebtn = gr.Button("Use the chosen URL to load interface with a image generation model")
|
1747 |
|
1748 |
imagegenspace = gr.HTML("Image Space Chosen will load here")
|
|
|
1752 |
gr.HTML("Concept Art, UI elements, Static/3D Characters, Environments and Objects")
|
1753 |
gr.HTML("Image Caption = https://huggingface.co/spaces/microsoft/Promptist, https://huggingface.co/spaces/gokaygokay/SD3-Long-Captioner, https://huggingface.co/spaces/gokaygokay/Florence-2, ")
|
1754 |
gr.HTML("Images Generation Portraits = https://huggingface.co/spaces/okaris/omni-zero")
|
1755 |
+
gr.HTML("Images Generation General (3rd Party) = https://www.craiyon.com/")
|
1756 |
gr.HTML("Images Generation Posters with text - https://huggingface.co/spaces/GlyphByT5/Glyph-SDXL-v2")
|
|
|
|
|
|
|
1757 |
gr.HTML("Placeholder for huggingface spaces that can assist - https://huggingface.co/spaces/EPFL-VILAB/4M, https://huggingface.co/spaces/EPFL-VILAB/MultiMAE ")
|
1758 |
gr.HTML("SVG Generation = Coding models / SOTA LLM ")
|
1759 |
gr.HTML("Images Generation - Upscaling - https://huggingface.co/spaces/gokaygokay/Tile-Upscaler")
|
|
|
1767 |
with gr.Row():
|
1768 |
linktovideogenspace = gr.Dropdown(choices=["--Genral--", "https://kadirnar-open-sora.hf.space",
|
1769 |
"--Talking Portrait--", "https://fffiloni-tts-hallo-talking-portrait.hf.space",
|
1770 |
+
"--Gif / ImgtoImg based video--", "https://wangfuyun-animatelcm-svd.hf.space", "https://bytedance-animatediff-lightning.hf.space", "https://wangfuyun-animatelcm.hf.space", "https://guoyww-animatediff.hf.space",],
|
|
|
1771 |
label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
|
1772 |
videogenspacebtn = gr.Button("Use the chosen URL to load interface with video generation")
|
1773 |
videogenspace = gr.HTML("Video Space Chosen will load here")
|
|
|
1786 |
with gr.Tab("Audio"):
|
1787 |
with gr.Accordion("3D Model Spaces/Sites (Click Here to Open) - Image to Blender?", open=False):
|
1788 |
with gr.Row():
|
1789 |
+
linktoaudiiogenspace = gr.Dropdown(choices=["General", "https://artificialguybr-stable-audio-open-zero.hf.space", "",
|
1790 |
"--Talking Portrait--","https://fffiloni-tts-hallo-talking-portrait.hf.space"],
|
1791 |
label="Choose/Cancel type any .hf.space link here (can also type a link)'", allow_custom_value=True)
|
1792 |
audiiogenspacebtn = gr.Button("Use the chosen URL to load interface with audio generation")
|