Srinivasulu kethanaboina commited on
Commit
392cef8
1 Parent(s): bc09f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -44,7 +44,7 @@ os.makedirs(PERSIST_DIR, exist_ok=True)
44
 
45
  # Variable to store current chat conversation
46
  current_chat_history = []
47
-
48
  def data_ingestion_from_directory():
49
  # Use SimpleDirectoryReader on the directory containing the PDF files
50
  documents = SimpleDirectoryReader(PDF_DIRECTORY).load_data()
@@ -57,7 +57,7 @@ def handle_query(query):
57
  (
58
  "user",
59
  """
60
- As Clera, your goal is to offer top-tier service and information about RedFerns Tech company.
61
  Provide concise answers based on the conversation flow. Ultimately, aim to attract users to connect with our services.
62
  Summarize responses effectively in 20-60 words without unnecessary repetition.
63
  {context_str}
@@ -101,6 +101,7 @@ data_ingestion_from_directory()
101
  """def predict(message,history):
102
  response = handle_query(message)
103
  return response"""
 
104
  def predict(message, history):
105
  logo_html = '''
106
  <div class="circle-logo">
@@ -166,8 +167,9 @@ footer {
166
  }
167
  label.svelte-1b6s6s {display: none}
168
  '''
 
169
  gr.ChatInterface(chat_interface,
170
  css=css,
171
- description=select_random_name(),
172
  clear_btn=None, undo_btn=None, retry_btn=None,
173
  ).launch()
 
44
 
45
  # Variable to store current chat conversation
46
  current_chat_history = []
47
+ kkk=select_random_name()
48
  def data_ingestion_from_directory():
49
  # Use SimpleDirectoryReader on the directory containing the PDF files
50
  documents = SimpleDirectoryReader(PDF_DIRECTORY).load_data()
 
57
  (
58
  "user",
59
  """
60
+ As {kkk}, your goal is to offer top-tier service and information about RedFerns Tech company.
61
  Provide concise answers based on the conversation flow. Ultimately, aim to attract users to connect with our services.
62
  Summarize responses effectively in 20-60 words without unnecessary repetition.
63
  {context_str}
 
101
  """def predict(message,history):
102
  response = handle_query(message)
103
  return response"""
104
+
105
  def predict(message, history):
106
  logo_html = '''
107
  <div class="circle-logo">
 
167
  }
168
  label.svelte-1b6s6s {display: none}
169
  '''
170
+
171
  gr.ChatInterface(chat_interface,
172
  css=css,
173
+ description=kkk,
174
  clear_btn=None, undo_btn=None, retry_btn=None,
175
  ).launch()