Spaces:
Sleeping
Sleeping
init
Browse files
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 |
-
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|