jdesiree commited on
Commit
4084c64
·
verified ·
1 Parent(s): 10465af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  from langchain.prompts import ChatPromptTemplate
3
  from langchain_huggingface import HuggingFaceEndpoint
4
- from langchain.schema import HumanMessage, SystemMessage
5
  import os
6
  import time
7
  import logging
@@ -54,7 +54,7 @@ Provide detailed, actionable advice with specific examples."""),
54
  study_template = ChatPromptTemplate.from_messages([
55
  ("system", """{system_message}
56
 
57
- You are a study skills coach. Help students with:
58
  - Effective study methods for different learning styles
59
  - Time management and scheduling techniques
60
  - Memory techniques and retention strategies
@@ -289,7 +289,7 @@ with gr.Blocks(css=custom_css, title="EduBot") as demo:
289
  msg = gr.Textbox(
290
  placeholder="Ask me about math, research, study strategies, or any educational topic...",
291
  show_label=False,
292
- lines=2,
293
  elem_classes=["input-container"],
294
  scale=4
295
  )
 
1
  import gradio as gr
2
  from langchain.prompts import ChatPromptTemplate
3
  from langchain_huggingface import HuggingFaceEndpoint
4
+ from langchain.schema import AIMessage, HumanMessage, SystemMessage
5
  import os
6
  import time
7
  import logging
 
54
  study_template = ChatPromptTemplate.from_messages([
55
  ("system", """{system_message}
56
 
57
+ You are a study skills coach. Help students with these types of tasks:
58
  - Effective study methods for different learning styles
59
  - Time management and scheduling techniques
60
  - Memory techniques and retention strategies
 
289
  msg = gr.Textbox(
290
  placeholder="Ask me about math, research, study strategies, or any educational topic...",
291
  show_label=False,
292
+ lines=4,
293
  elem_classes=["input-container"],
294
  scale=4
295
  )