Spaces:
Running
Running
Update app.py
Browse files
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
|
117 |
|
118 |
-
max_new_tokens = gr.Slider(label="
|
119 |
-
top_k = gr.Slider(label="
|
120 |
-
temperature = gr.Slider(label="
|
121 |
-
top_p = gr.Slider(label="
|
122 |
-
repetition_penalty = gr.Slider(label="
|
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)
|