gagan3012 commited on
Commit
a20d82c
1 Parent(s): c9eb2fb

Update server.py

Browse files
Files changed (1) hide show
  1. server.py +11 -6
server.py CHANGED
@@ -54,7 +54,7 @@ custom_keywords = st_tags(
54
  value=['salt'],
55
  suggestions=["z"],
56
  maxtags=15,
57
- key='1')
58
 
59
  # def custom_keywords_on_change():
60
  # pass
@@ -94,11 +94,16 @@ if submit:
94
  output = outputs[0]
95
  output['title'] = " ".join([w.capitalize() for w in output['title'].split()])
96
  markdown_output = ""
97
- markdown_output += f"## {output['title']}\n"
98
- markdown_output += f"#### Ingredients:\n"
 
 
99
  for o in output["ingredients"]:
100
- markdown_output += f"- {o}\n"
101
- markdown_output += f"#### Directions:\n"
 
 
102
  for o in output["directions"]:
103
- markdown_output += f"- {o}\n"
 
104
  st.markdown(markdown_output)
54
  value=['salt'],
55
  suggestions=["z"],
56
  maxtags=15,
57
+ key='tags')
58
 
59
  # def custom_keywords_on_change():
60
  # pass
94
  output = outputs[0]
95
  output['title'] = " ".join([w.capitalize() for w in output['title'].split()])
96
  markdown_output = ""
97
+ markdown_output += f"## {output['title']}\
98
+ "
99
+ markdown_output += f"#### Ingredients:\
100
+ "
101
  for o in output["ingredients"]:
102
+ markdown_output += f"- {o}\
103
+ "
104
+ markdown_output += f"#### Directions:\
105
+ "
106
  for o in output["directions"]:
107
+ markdown_output += f"- {o}\
108
+ "
109
  st.markdown(markdown_output)