aaronmat1905 commited on
Commit
7e6a155
1 Parent(s): 97f23e3
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -54,8 +54,19 @@ def gradio_chat(usertxt, chat_history):
54
  response, updated_history = respond(usertxt, chat_history)
55
  return response, updated_history
56
 
57
- demo = gr.ChatInterface(fn=gradio_chat, inputs="text", outputs=["text", "state"])
 
 
58
 
59
- # Launch the Gradio app
60
- if __name__ == "__main__":
61
- demo.launch()
 
 
 
 
 
 
 
 
 
 
54
  response, updated_history = respond(usertxt, chat_history)
55
  return response, updated_history
56
 
57
+ markdown_content = """
58
+ # Welcome to the Food Safety Assistant
59
+ ### Please ask your questions regarding food safety and we'll guide you!
60
 
61
+ **Instructions**:
62
+ 1. Type your question in the chat.
63
+ 2. Press "Submit" to get a response.
64
+ 3. If you have a complaint, we will guide you to generate a report.
65
+ """
66
+
67
+ # Create a Gradio interface
68
+ with gr.Blocks() as demo:
69
+ gr.Markdown(markdown_content)
70
+ chatbot = gr.ChatInterface(fn=gradio_chat)
71
+
72
+ demo.launch()