Spaces:
Sleeping
Sleeping
Commit
·
e5e5192
1
Parent(s):
3a37a96
no max toks
Browse files
app.py
CHANGED
|
@@ -70,15 +70,18 @@ if check_password():
|
|
| 70 |
st.markdown("### GPT-3.5 response")
|
| 71 |
chat_box = st.empty()
|
| 72 |
stream_handler = StreamHandler(chat_box, display_method='write')
|
| 73 |
-
chat = ChatOpenAI(
|
| 74 |
|
| 75 |
query_combined = "Please provide constructive feedback in English on this proposed research question, suggesting how it might be improved: <research_question>" + query + "</research_question>."
|
| 76 |
#st.markdown("### together box")
|
| 77 |
messages = [
|
| 78 |
SystemMessage(
|
| 79 |
-
content="
|
| 80 |
-
in particular for Masters students planning to write a Master's Thesis.
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
| 82 |
),
|
| 83 |
HumanMessage(
|
| 84 |
content=query_combined
|
|
|
|
| 70 |
st.markdown("### GPT-3.5 response")
|
| 71 |
chat_box = st.empty()
|
| 72 |
stream_handler = StreamHandler(chat_box, display_method='write')
|
| 73 |
+
chat = ChatOpenAI(streaming=True, callbacks=[stream_handler])
|
| 74 |
|
| 75 |
query_combined = "Please provide constructive feedback in English on this proposed research question, suggesting how it might be improved: <research_question>" + query + "</research_question>."
|
| 76 |
#st.markdown("### together box")
|
| 77 |
messages = [
|
| 78 |
SystemMessage(
|
| 79 |
+
content="You are a helpful research assistant that provides feedback to university students and " \
|
| 80 |
+
"researchers on their ideas for a research question, in particular for Masters students planning to write a Master's Thesis. " \
|
| 81 |
+
"A good research question should be narrow enough that it can be well-addressed in a 20-30 page " \
|
| 82 |
+
"literature review, and provides guidance to focus the literature review, and points towards specific areas " \
|
| 83 |
+
"of scientific literature that should be included. A good research question also provides guidance on the " \
|
| 84 |
+
"methodological (empirical) approach needed to answer the question. "
|
| 85 |
),
|
| 86 |
HumanMessage(
|
| 87 |
content=query_combined
|