Tonic commited on
Commit
0b58927
โ€ข
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)