Update app.py
Browse files
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
|
| 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("#
|
| 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")
|