Srinivasulu kethanaboina commited on
Commit
5d52e09
1 Parent(s): 6570683

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -90,14 +90,25 @@ data_ingestion_from_directory()
90
  response = handle_query(message)
91
  return response"""
92
  def predict(message, history):
 
93
  logo_html = '''
94
  <div class="circle-logo">
95
  <img src="https://rb.gy/8r06eg" alt="FernAi">
96
  </div>
97
  '''
 
 
98
  response = handle_query(message)
 
 
99
  response_with_logo = f'<div class="response-with-logo">{logo_html}<div class="response-text">{response}</div></div>'
 
 
 
 
 
100
  return response_with_logo
 
101
  # Custom CSS for styling
102
  css = '''
103
  .circle-logo {
 
90
  response = handle_query(message)
91
  return response"""
92
  def predict(message, history):
93
+ # Your logo HTML code
94
  logo_html = '''
95
  <div class="circle-logo">
96
  <img src="https://rb.gy/8r06eg" alt="FernAi">
97
  </div>
98
  '''
99
+
100
+ # Assuming handle_query function handles the message and returns a response
101
  response = handle_query(message)
102
+
103
+ # Prepare the response with logo HTML
104
  response_with_logo = f'<div class="response-with-logo">{logo_html}<div class="response-text">{response}</div></div>'
105
+
106
+ # Save history to kk.txt
107
+ with open('kk.txt', 'a') as file:
108
+ file.write(history + '\n')
109
+
110
  return response_with_logo
111
+
112
  # Custom CSS for styling
113
  css = '''
114
  .circle-logo {