eaglelandsonce commited on
Commit
b8834bb
1 Parent(s): cd4dd2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -13
app.py CHANGED
@@ -55,8 +55,7 @@ def crewai_process_gemini(research_topic):
55
 
56
  # Create tasks for your agents
57
  task1 = Task(
58
- description=f"""From {research_topic} create your story by writing at least one sentence about each bullet point from each of the five scenes
59
- and make sure you have a transitional statement between scenes . BE VERBOSE.""",
60
  agent=GeminiAgent
61
  )
62
 
@@ -93,8 +92,7 @@ def crewai_process_mixtral_crazy(research_topic):
93
 
94
  # Create tasks for your agents
95
  task1 = Task(
96
- description=f"""From {research_topic} create your story by writing at least one sentence about each bullet point from each of the five scenes
97
- and make sure you have a transitional statement between scenes . BE VERBOSE.""",
98
  agent=MixtralCrazyAgent
99
  )
100
 
@@ -130,8 +128,7 @@ def crewai_process_mixtral_normal(research_topic):
130
 
131
  # Create tasks for your agents
132
  task1 = Task(
133
- description=f"""From {research_topic} create your story by writing at least one sentence about each bullet point from each of the five scenes
134
- and make sure you have a transitional statement between scenes . BE VERBOSE.""",
135
  agent=MixtralNormalAgent
136
  )
137
 
@@ -167,8 +164,7 @@ def crewai_process_zephyr_normal(research_topic):
167
 
168
  # Create tasks for your agents
169
  task1 = Task(
170
- description=f"""From {research_topic} create your story by writing at least one sentence about each bullet point from each of the five scenes
171
- and make sure you have a transitional statement between scenes . BE VERBOSE.""",
172
  agent=ZephrNormalAgent
173
  )
174
 
@@ -204,8 +200,7 @@ def crewai_process_phi2(research_topic):
204
 
205
  # Create tasks for your agents
206
  task1 = Task(
207
- description=f"""From {research_topic} create your story by writing at least one sentence about each bullet point from each of the five scenes
208
- and make sure you have a transitional statement between scenes . BE VERBOSE.""",
209
  agent=Phi2Agent
210
  )
211
 
@@ -282,7 +277,7 @@ def vectara_query(query: str, config: dict):
282
 
283
 
284
  # Create the main app with three tabs
285
- tab1, tab2, tab3, tab4 = st.tabs(["Synthetic Data", "Data Query", "HHEM-Vectara Query Tuner", "Model Evaluation"])
286
 
287
  with tab1:
288
 
@@ -378,7 +373,7 @@ with tab2:
378
 
379
  with tab3:
380
 
381
- st.header("HHEM-Vectara Query Tuner")
382
 
383
  # User inputs
384
  query = st.text_area("Enter your text for query tuning", "", height=100)
@@ -446,4 +441,4 @@ with tab4:
446
  result = crewai_process_phi2(research_topic)
447
  st.write(result)
448
  else:
449
- st.warning('Please enter a research topic.')
 
55
 
56
  # Create tasks for your agents
57
  task1 = Task(
58
+ description=f"""Create a one paragraph summary of the {research_topic}""",
 
59
  agent=GeminiAgent
60
  )
61
 
 
92
 
93
  # Create tasks for your agents
94
  task1 = Task(
95
+ description=f"""Create a one paragraph summary of the {research_topic}""",
 
96
  agent=MixtralCrazyAgent
97
  )
98
 
 
128
 
129
  # Create tasks for your agents
130
  task1 = Task(
131
+ description=f"""Create a one paragraph summary of the {research_topic}""",
 
132
  agent=MixtralNormalAgent
133
  )
134
 
 
164
 
165
  # Create tasks for your agents
166
  task1 = Task(
167
+ description=f"""Create a one paragraph summary of the {research_topic}""",
 
168
  agent=ZephrNormalAgent
169
  )
170
 
 
200
 
201
  # Create tasks for your agents
202
  task1 = Task(
203
+ description=f"""Create a one paragraph summary of the {research_topic}""",
 
204
  agent=Phi2Agent
205
  )
206
 
 
277
 
278
 
279
  # Create the main app with three tabs
280
+ tab1, tab2, tab3, tab4 = st.tabs(["Synthetic Data", "Data Query", "HHEM-Victara Query Tuner", "Model Evaluation"])
281
 
282
  with tab1:
283
 
 
373
 
374
  with tab3:
375
 
376
+ st.header("HHEM-Victara Query Tuner")
377
 
378
  # User inputs
379
  query = st.text_area("Enter your text for query tuning", "", height=100)
 
441
  result = crewai_process_phi2(research_topic)
442
  st.write(result)
443
  else:
444
+ st.warning('Please enter a research topic.')