olemeyer commited on
Commit
242bf17
1 Parent(s): 3259356

move config to additional inputs

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -118,6 +118,8 @@ def generate_text(complex_text:str,style:str,temperature,top_k,top_p):
118
  iface = gr.Interface(fn=generate_text, inputs=[
119
  gr.TextArea(label="Text", placeholder="Komplizierter Text...", info="Maximal 1000 Zeichen werden in dieser Demo verarbeitet."),
120
  gr.Dropdown(["einfache Sprache","leichte Sprache"],label="Stil",value="einfache Sprache"),
 
 
121
  gr.Slider(0.0, 1.0, 0.3, label="Temperatur"),
122
  gr.Slider(0, 100, 15, label="Top-k"),
123
  gr.Slider(0.0, 1.0, 0.8, label="Top-p")
 
118
  iface = gr.Interface(fn=generate_text, inputs=[
119
  gr.TextArea(label="Text", placeholder="Komplizierter Text...", info="Maximal 1000 Zeichen werden in dieser Demo verarbeitet."),
120
  gr.Dropdown(["einfache Sprache","leichte Sprache"],label="Stil",value="einfache Sprache"),
121
+ ],
122
+ additional_inputs=[
123
  gr.Slider(0.0, 1.0, 0.3, label="Temperatur"),
124
  gr.Slider(0, 100, 15, label="Top-k"),
125
  gr.Slider(0.0, 1.0, 0.8, label="Top-p")