JohanBeytell commited on
Commit
902ae22
·
verified ·
1 Parent(s): 0d214b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -98,7 +98,7 @@ def generate_names(prompt, temperature, top_k, count, retries):
98
  return df, file_path
99
 
100
  # === UI ===
101
- description = """# 🧠 KaosGen: A Fantasy Name Generator
102
  Kaos is a small GPT-style transformer trained from scratch using character-level tokenization.
103
  It excels at fantasy and mythic naming conventions.
104
 
@@ -127,12 +127,12 @@ with gr.Blocks() as demo:
127
  top_k = gr.Slider(10, 100, step=10, value=40, label="Top-K Sampling")
128
  count = gr.Slider(1, 20, step=1, value=5, label="Names to Generate")
129
  retries = gr.Slider(1, 5, step=1, value=3, label="Max Retries per Name")
130
- generate_btn = gr.Button("\ud83c\udfb2 Generate Names")
131
  with gr.Column():
132
  output = gr.Dataframe(headers=["Generated Name"], datatype="str", label="Generated Names", interactive=False)
133
- download = gr.File(label="\ud83d\udcc5 Export Names as .txt")
134
 
135
  generate_btn.click(fn=generate_names, inputs=[prompt, temperature, top_k, count, retries], outputs=[output, download])
136
  gr.Examples(examples=examples, inputs=prompt)
137
 
138
- demo.launch(share=True)
 
98
  return df, file_path
99
 
100
  # === UI ===
101
+ description = """# 🧠 Kaos: A Fantasy Name Generator
102
  Kaos is a small GPT-style transformer trained from scratch using character-level tokenization.
103
  It excels at fantasy and mythic naming conventions.
104
 
 
127
  top_k = gr.Slider(10, 100, step=10, value=40, label="Top-K Sampling")
128
  count = gr.Slider(1, 20, step=1, value=5, label="Names to Generate")
129
  retries = gr.Slider(1, 5, step=1, value=3, label="Max Retries per Name")
130
+ generate_btn = gr.Button("Generate Names")
131
  with gr.Column():
132
  output = gr.Dataframe(headers=["Generated Name"], datatype="str", label="Generated Names", interactive=False)
133
+ download = gr.File(label="Export Names as .txt")
134
 
135
  generate_btn.click(fn=generate_names, inputs=[prompt, temperature, top_k, count, retries], outputs=[output, download])
136
  gr.Examples(examples=examples, inputs=prompt)
137
 
138
+ demo.launch()