aidan-o-brien commited on
Commit
8b09f28
1 Parent(s): 8fa0f4a

Added formatting to output of the model

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -43,4 +43,15 @@ if uploaded_file is not None:
43
  answer = question_answer(question=question, context=first_example)
44
 
45
  # Present results
46
- st.write(answer)
 
 
 
 
 
 
 
 
 
 
 
 
43
  answer = question_answer(question=question, context=first_example)
44
 
45
  # Present results
46
+ st.markdown(f"""
47
+ # Results
48
+
49
+ The review provided was:
50
+
51
+ {first_example}
52
+
53
+ The answer given to the question 'how to improve this recipe?' was:
54
+
55
+ {answer['answer']}
56
+
57
+ """)