Afeezee commited on
Commit
ec0dea5
·
verified ·
1 Parent(s): ccf3d48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,7 +111,7 @@ def reset_session():
111
  with lock:
112
  if time.time() - last_interaction_time > 180: # 3 minutes of inactivity
113
  conversation_history = [
114
- {"role": "system", "content": "You are an assistant in a trivia game focused on Nigerian music."}
115
  ]
116
 
117
  # Start the background thread for session reset
@@ -127,7 +127,7 @@ with gr.Blocks() as demo:
127
  gr.Markdown("# TriviaVilla\n How much do you know about the Nigerian Music Industry? Here is a Trivia to test your knowledge. Developed using LLama 3.1 LLM. This model may hallucinate sometimes, but you can guide it through your prompt.")
128
 
129
  # LLM Output Textbox
130
- llm_output = gr.Textbox(label="LLM Output", placeholder="The output from the LLM will appear here", lines=10, value=initial_output)
131
 
132
  # User Response Textbox
133
  user_response = gr.Textbox(label="Your Response", placeholder="Type your response here", lines=3)
 
111
  with lock:
112
  if time.time() - last_interaction_time > 180: # 3 minutes of inactivity
113
  conversation_history = [
114
+ {"role": "system", "content": "You are an experienced assistant in a trivia game focused on Nigerian music. With over 40 years of keeping track of Nigerian Music, You have great knowledge of the Nigerian Music Industry"}
115
  ]
116
 
117
  # Start the background thread for session reset
 
127
  gr.Markdown("# TriviaVilla\n How much do you know about the Nigerian Music Industry? Here is a Trivia to test your knowledge. Developed using LLama 3.1 LLM. This model may hallucinate sometimes, but you can guide it through your prompt.")
128
 
129
  # LLM Output Textbox
130
+ llm_output = gr.Textbox(label="LLM Output", placeholder="", lines=10, value=initial_output)
131
 
132
  # User Response Textbox
133
  user_response = gr.Textbox(label="Your Response", placeholder="Type your response here", lines=3)