beryamosta commited on
Commit
695990c
·
verified ·
1 Parent(s): 759ea9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py CHANGED
@@ -1,3 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  st.title("Metropole ChatBot pour les Signataire !!")
2
 
3
  # Initialize chat history
 
1
+ import streamlit as st
2
+ import random
3
+ import time
4
+
5
+
6
+ # Streamed response emulator
7
+ def response_generator():
8
+ response = random.choice(
9
+ [
10
+ "Hello there! How can I assist you today?",
11
+ "Hi, human! Is there anything I can help you with?",
12
+ "Do you need help?",
13
+ ]
14
+ )
15
+ for word in response.split():
16
+ yield word + " "
17
+ time.sleep(0.05)
18
+
19
+
20
  st.title("Metropole ChatBot pour les Signataire !!")
21
 
22
  # Initialize chat history