RanM commited on
Commit
95f0e46
·
verified ·
1 Parent(s): b5ad13a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -39,13 +39,8 @@ def inference(text, sentence_mapping, character_dict, selected_style):
39
 
40
  gradio_interface = gr.Interface(
41
  fn=inference,
42
- inputs=[
43
- gr.inputs.Textbox(label="Text"),
44
- gr.inputs.Textbox(label="Sentence Mapping"),
45
- gr.inputs.Textbox(label="Character Dict"),
46
- gr.inputs.Dropdown(["Style 1", "Style 2", "Style 3"], label="Selected Style")
47
- ],
48
- outputs="json" # Return the dictionary of images
49
  )
50
 
51
  if __name__ == "__main__":
 
39
 
40
  gradio_interface = gr.Interface(
41
  fn=inference,
42
+ inputs="text",
43
+ outputs="text"
 
 
 
 
 
44
  )
45
 
46
  if __name__ == "__main__":