RanM commited on
Commit
d05fa5e
·
verified ·
1 Parent(s): 6fffab8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -40,7 +40,14 @@ def inference(text, sentence_mapping, character_dict, selected_style):
40
 
41
  gradio_interface = gr.Interface(
42
  fn=inference,
43
- inputs="text",
 
 
 
 
 
 
 
44
  outputs="text"
45
  )
46
 
 
40
 
41
  gradio_interface = gr.Interface(
42
  fn=inference,
43
+ inputs=[
44
+ gr.Textbox(label="Text"),
45
+ gr.Textbox(label="Sentence Mapping"),
46
+ gr.Textbox(label="Character Dict"),
47
+ gr.Dropdown(["Style 1", "Style 2", "Style 3"], label="Selected Style")
48
+ ],
49
+ inputs=["text", "checkbox", gr.Slider(0, 100)],
50
+
51
  outputs="text"
52
  )
53