Tonic commited on
Commit
0b58927
·
verified ·
1 Parent(s): 6bb1546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -113,13 +113,13 @@ with gr.Blocks(theme=gr.themes.Base()) as iface:
113
 
114
  gr.Markdown(title)
115
 
116
- prompt = gr.Textbox(label="Add a passage in the style of historical texts", placeholder="Hi there my name is Tonic and I ride my bicycle along the river Seine:", lines=3)
117
 
118
- max_new_tokens = gr.Slider(label="🎅🏻⌚Length", minimum=50, maximum=1000, step=5, value=320)
119
- top_k = gr.Slider(label="🎅🏻⌚Sampling", minimum=1, maximum=100, step=1, value=50)
120
- temperature = gr.Slider(label="🎅🏻⌚Boringness", minimum=0.1, maximum=1, step=0.05, value=0.3)
121
- top_p = gr.Slider(label="🎅🏻⌚Quality", minimum=0.1, maximum=0.99, step=0.01, value=0.97)
122
- repetition_penalty = gr.Slider(label="🎅🏻⌚Repetition Penalty", minimum=0.5, maximum=2.0, step=0.05, value=1.3)
123
 
124
  generated_text_output = gr.Textbox(label="🎅🏻⌚OCRonos-Vintage")
125
  highlighted_text = gr.HighlightedText(label="🎅🏻⌚Tokenized", combine_adjacent=True, show_legend=True)
 
113
 
114
  gr.Markdown(title)
115
 
116
+ prompt = gr.Textbox(label="Add a passage in the style of historical texts", placeholder="Hi there my name is Tonic and I ride my bicycle along the river Seine' he said", lines=2)
117
 
118
+ max_new_tokens = gr.Slider(label="📏Length", minimum=50, maximum=1000, step=5, value=320)
119
+ top_k = gr.Slider(label="🧪Sampling", minimum=1, maximum=100, step=1, value=50)
120
+ temperature = gr.Slider(label="🎨Creativity", minimum=0.1, maximum=1, step=0.05, value=0.3)
121
+ top_p = gr.Slider(label="👌🏻Quality", minimum=0.1, maximum=0.99, step=0.01, value=0.97)
122
+ repetition_penalty = gr.Slider(label="🔴Repetition Penalty", minimum=0.5, maximum=2.0, step=0.05, value=1.3)
123
 
124
  generated_text_output = gr.Textbox(label="🎅🏻⌚OCRonos-Vintage")
125
  highlighted_text = gr.HighlightedText(label="🎅🏻⌚Tokenized", combine_adjacent=True, show_legend=True)