drakosfire commited on
Commit
f4e19b9
1 Parent(s): 1778258

added allowed_paths to launch

Browse files
.git.bfg-report/2024-04-26/21-17-53/cache-stats.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ (apply,CacheStats{hitCount=390, missCount=226, loadSuccessCount=226, loadExceptionCount=0, totalLoadTime=119035064, evictionCount=0})
2
+ (tree,CacheStats{hitCount=558, missCount=159, loadSuccessCount=154, loadExceptionCount=0, totalLoadTime=108007929, evictionCount=0})
3
+ (commit,CacheStats{hitCount=131, missCount=120, loadSuccessCount=120, loadExceptionCount=0, totalLoadTime=39241311, evictionCount=0})
4
+ (tag,CacheStats{hitCount=0, missCount=0, loadSuccessCount=0, loadExceptionCount=0, totalLoadTime=0, evictionCount=0})
.git.bfg-report/2024-04-26/21-17-53/deleted-files.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ 6a3b93ba9c8a0aaf19d99b1432220d8da844a4f6 1684236 Armor.png
.git.bfg-report/2024-04-26/21-17-53/object-id-map.old-new.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ 24791408368bc3dea1da6ad3d2d9c0c24944a5b9 2fa9052f20e9dc8091352168742a41a457830b06
2
+ 949ebc9ed991fe03b90a4ee719c493bf759a091c 4b825dc642cb6eb9a060e54bf8d69288fbee4904
3
+ 9a56bff977c21c94875ba7fe8ba005526e5bf839 4d12525b46ee0dd93d444ba8794dc2cf6357a955
4
+ cc138def24eb61ea1c187e80e7cca3738caa8058 61766c99a1adb2623d546a14853e7021ef7c2611
.git.bfg-report/2024-04-26/21-17-53/protected-dirt/24791408-HEAD.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ 0318489e4088083e7882e249815812e75df6f1cc,DELETE,regular-file,image_temp/Armor.png,132,
README.md CHANGED
@@ -25,9 +25,10 @@ This generator leverages an API call to [Replicate](https://replicate.com/) usin
25
 
26
  ## How It Works
27
 
28
- 1. Your intitial text along with the prompt is sent to Llama 3 70b to generate a structured python dictionary.
29
  2. This new text will populate in interactive text fields. If it isn't perfect you can edit the text to fit your item.
30
- 3. THe final text field is the Stable Diffusion prompt, these generate like one sentence stories describing the scene of your item. This field can also be edited.
 
31
  4. **Image and Text Generation**: Now generate 4 card template without text and pick your favorite.
32
  5. Finally, add text to your favorite template.
33
  3. **Result**: The final product is a beautifully crafted D&D item card, ready for use in your gaming sessions.
 
25
 
26
  ## How It Works
27
 
28
+ 1. Your intitial text along with the prompt is sent to Llama 3 70b to generate a python dictionary.
29
  2. This new text will populate in interactive text fields. If it isn't perfect you can edit the text to fit your item.
30
+ 3. The final text field is the Stable Diffusion prompt, these generate like one sentence stories describing the scene of your item. This field can also be edited.
31
+ ## The first image generation take about 2 minutes for model to 'cold boot' after that it's ~10s per image.
32
  4. **Image and Text Generation**: Now generate 4 card template without text and pick your favorite.
33
  5. Finally, add text to your favorite template.
34
  3. **Result**: The final product is a beautifully crafted D&D item card, ready for use in your gaming sessions.
app.py CHANGED
@@ -129,8 +129,18 @@ with gr.Blocks() as demo:
129
  With this AI driven tool you will build a collectible style card of a fantasy flavored item with details.
130
  </p>
131
  </div>""")
132
-
133
-
 
 
 
 
 
 
 
 
 
 
134
  gr.HTML(""" <div id="inner"> <header>
135
  <h2><b>First:</b> Build a Card Template</h2>
136
  </div>""")
@@ -291,7 +301,7 @@ with gr.Blocks() as demo:
291
 
292
 
293
  if __name__ == "__main__":
294
- demo.launch()
295
 
296
 
297
 
 
129
  With this AI driven tool you will build a collectible style card of a fantasy flavored item with details.
130
  </p>
131
  </div>""")
132
+ markdown_instructions = """## How It Works
133
+
134
+ 1. Your intitial text along with the prompt is sent to Llama 3 70b to generate a python dictionary.
135
+ 2. This new text will populate in interactive text fields. If it isn't perfect you can edit the text to fit your item.
136
+ 3. The final text field is the Stable Diffusion prompt, these generate like one sentence stories describing the scene of your item. This field can also be edited.
137
+ ## The first image generation take about 2 minutes for model to 'cold boot' after that it's ~10s per image.
138
+ 4. **Image and Text Generation**: Now generate 4 card template without text and pick your favorite.
139
+ 5. Finally, add text to your favorite template.
140
+ 3. **Result**: The final product is a beautifully crafted D&D item card, ready for use in your gaming sessions."""
141
+
142
+ gr.Markdown(markdown_instructions)
143
+
144
  gr.HTML(""" <div id="inner"> <header>
145
  <h2><b>First:</b> Build a Card Template</h2>
146
  </div>""")
 
301
 
302
 
303
  if __name__ == "__main__":
304
+ demo.launch(allowed_paths = ["/home/user/app/card_parts"])
305
 
306
 
307