taisazero commited on
Commit
87e16bf
1 Parent(s): c767df5

added text area

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,13 +53,13 @@ def run():
53
  )
54
  # main body
55
  model, tokenizer = get_model()
56
- output_plan = st.text_input("Output Plan: ", value = "[AC:Request [IN:FindRestaurants [SL:location] ] ] [AC:Request [IN:FindRestaurants [SL:category] ] ]", help ="Type in the output plan used by the system to generate a response in English.")
57
  submit_button = st.button("Generate Response")
58
  if submit_button:
59
  text = st.text("Generating Response...")
60
  response = lexicalize_plan (model, tokenizer, output_plan, temperature, num_beams)
61
  text.empty()
62
- st.text("Generated Response: " + str(response))
63
 
64
  if __name__ == "__main__":
65
  run()
 
53
  )
54
  # main body
55
  model, tokenizer = get_model()
56
+ output_plan = st.text_area("Output Plan: ", value = "[AC:Request [IN:FindRestaurants [SL:location] ] ] [AC:Request [IN:FindRestaurants [SL:category] ] ]", help ="Type in the output plan used by the system to generate a response in English.")
57
  submit_button = st.button("Generate Response")
58
  if submit_button:
59
  text = st.text("Generating Response...")
60
  response = lexicalize_plan (model, tokenizer, output_plan, temperature, num_beams)
61
  text.empty()
62
+ st.write("Generated Response: " + str(response))
63
 
64
  if __name__ == "__main__":
65
  run()