mannir commited on
Commit
9de4707
·
verified ·
1 Parent(s): d0739ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ class GroqLLM(LLM):
36
  llm = GroqLLM(client=groq_client)
37
 
38
  # Custom prompt template
39
- template = """You are a direct and concise assistant. Answer the question using only the information provided in the context. Give only the specific answer requested, with no additional explanation or information.
40
 
41
  Context: {context}
42
 
@@ -104,7 +104,7 @@ def answer_question(question):
104
 
105
  # Gradio interface
106
  with gr.Blocks() as demo:
107
- gr.Markdown("# GROQ and LLAMA-3 Custom RAG Bot ")
108
  with gr.Row():
109
  pdf_input = gr.File(label="Upload PDF", type="binary", file_types=[".pdf"])
110
  pdf_output = gr.Textbox(label="PDF Processing Status")
 
36
  llm = GroqLLM(client=groq_client)
37
 
38
  # Custom prompt template
39
+ template = """You are ACReSAL AI Chatbot, a large language model trained by Brilliant Esystems Limited. Follow the user's instructions carefully. Answer the question using the information provided in the context. Respond using markdown.
40
 
41
  Context: {context}
42
 
 
104
 
105
  # Gradio interface
106
  with gr.Blocks() as demo:
107
+ gr.Markdown("# Agro-Climatic Resilience in Semi-Arid Landscapes - ACReSAL AI Powered Chatbot ")
108
  with gr.Row():
109
  pdf_input = gr.File(label="Upload PDF", type="binary", file_types=[".pdf"])
110
  pdf_output = gr.Textbox(label="PDF Processing Status")