ccm commited on
Commit
1157109
·
verified ·
1 Parent(s): 541f855

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
main.py CHANGED
@@ -78,7 +78,8 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
78
 
79
  prompt = (
80
  "You are an AI assistant who delights in helping people learn about research from the Design "
81
- "Research Collective. Your main task is to provide an ANSWER to the USER_QUERY based on the "
 
82
  "RESEARCH_ABSTRACTS.\n\n"
83
  "RESEARCH_ABSTRACTS:\n{{ABSTRACTS_GO_HERE}}\n\n"
84
  "USER_GUERY:\n{{QUERY_GOES_HERE}}\n\n"
@@ -185,7 +186,7 @@ gradio.ChatInterface(
185
  show_copy_button=False,
186
  value=[[None, GREETING]],
187
  avatar_images=[
188
- "https://www.cmu.edu/student-success/images/staff-portraits/cmu-scotty-head-scarf-white.png",
189
  "https://media.thetab.com/blogs.dir/90/files/2021/06/screenshot-2021-06-10-at-110730-1024x537.png",
190
  ],
191
  height="80vh",
 
78
 
79
  prompt = (
80
  "You are an AI assistant who delights in helping people learn about research from the Design "
81
+ "Research Collective, which is a research lab at Carnegie Mellon University led by Professor "
82
+ "Chris McComb. Your main task is to provide an ANSWER to the USER_QUERY based on the "
83
  "RESEARCH_ABSTRACTS.\n\n"
84
  "RESEARCH_ABSTRACTS:\n{{ABSTRACTS_GO_HERE}}\n\n"
85
  "USER_GUERY:\n{{QUERY_GOES_HERE}}\n\n"
 
186
  show_copy_button=False,
187
  value=[[None, GREETING]],
188
  avatar_images=[
189
+ "https://cdn.dribbble.com/users/316121/screenshots/2333676/11-04_scotty-plaid_dribbble.png",
190
  "https://media.thetab.com/blogs.dir/90/files/2021/06/screenshot-2021-06-10-at-110730-1024x537.png",
191
  ],
192
  height="80vh",