Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -104,17 +104,17 @@ with gr.Blocks(theme=gr.themes.Base()) as iface:
|
|
104 |
|
105 |
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)
|
106 |
|
107 |
-
max_new_tokens = gr.Slider(label="
|
108 |
-
top_k = gr.Slider(label="
|
109 |
-
temperature = gr.Slider(label="
|
110 |
-
top_p = gr.Slider(label="
|
111 |
-
repetition_penalty = gr.Slider(label="Repetition Penalty", minimum=0.5, maximum=2.0, step=0.05, value=1.3)
|
112 |
|
113 |
generated_text_output = gr.Textbox(label="🎅🏻⌚OCRonos-Vintage")
|
114 |
highlighted_text = gr.HighlightedText(label="🎅🏻⌚Tokenized", combine_adjacent=True, show_legend=True)
|
115 |
tokenizer_info = gr.JSON(label="📉Tokenizer Info (Input Text)")
|
116 |
dependency_parse_input = gr.HTML(label="👁️Visualization")
|
117 |
-
dependency_parse_generated = gr.HTML(label="Dependency Parse Visualization (Generated Text)", visible=False)
|
118 |
|
119 |
send_button = gr.Button(value="🎅🏻⌚OCRonos-Vintage 👁️Visualization", visible=False)
|
120 |
reset_button = gr.Button(value="♻️Start Again", visible=False)
|
|
|
104 |
|
105 |
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)
|
106 |
|
107 |
+
max_new_tokens = gr.Slider(label="🎅🏻⌚Length", minimum=50, maximum=1000, step=5, value=320)
|
108 |
+
top_k = gr.Slider(label="🎅🏻⌚Sampling", minimum=1, maximum=100, step=1, value=50)
|
109 |
+
temperature = gr.Slider(label="🎅🏻⌚Creativity", minimum=0.1, maximum=1, step=0.05, value=0.5)
|
110 |
+
top_p = gr.Slider(label="🎅🏻⌚Quality", minimum=0.1, maximum=0.99, step=0.01, value=0.97)
|
111 |
+
repetition_penalty = gr.Slider(label="🎅🏻⌚Repetition Penalty", minimum=0.5, maximum=2.0, step=0.05, value=1.3)
|
112 |
|
113 |
generated_text_output = gr.Textbox(label="🎅🏻⌚OCRonos-Vintage")
|
114 |
highlighted_text = gr.HighlightedText(label="🎅🏻⌚Tokenized", combine_adjacent=True, show_legend=True)
|
115 |
tokenizer_info = gr.JSON(label="📉Tokenizer Info (Input Text)")
|
116 |
dependency_parse_input = gr.HTML(label="👁️Visualization")
|
117 |
+
dependency_parse_generated = gr.HTML(label="🎅🏻⌚Dependency Parse Visualization (Generated Text)", visible=False)
|
118 |
|
119 |
send_button = gr.Button(value="🎅🏻⌚OCRonos-Vintage 👁️Visualization", visible=False)
|
120 |
reset_button = gr.Button(value="♻️Start Again", visible=False)
|