orangecode12 commited on
Commit
c2efe09
·
verified ·
1 Parent(s): 8e87eb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -23,7 +23,7 @@ Transcript:
23
  json={
24
  "model": "gpt-4o-mini",
25
  "messages": [{"role": "user", "content": full_prompt}],
26
- "max_tokens": 300,
27
  },
28
  )
29
  if resp.status_code != 200:
@@ -35,9 +35,20 @@ with gr.Blocks() as demo:
35
  gr.Markdown("# GPT Playground")
36
  check_list_box = gr.Textbox(lines=5, label="Checklist")
37
  transcript_box = gr.Textbox(lines=5, label="Transcript")
38
- master_prompt_box = gr.Textbox(lines=5, label="Prompt")
39
-
40
- output_box = gr.Textbox(label="GPT Reply")
 
 
 
 
 
 
 
 
 
 
 
41
  submit = gr.Button("Send")
42
 
43
  # Pass the *components*, not strings
 
23
  json={
24
  "model": "gpt-4o-mini",
25
  "messages": [{"role": "user", "content": full_prompt}],
26
+ "max_tokens": 16000,
27
  },
28
  )
29
  if resp.status_code != 200:
 
35
  gr.Markdown("# GPT Playground")
36
  check_list_box = gr.Textbox(lines=5, label="Checklist")
37
  transcript_box = gr.Textbox(lines=5, label="Transcript")
38
+ master_prompt_box = gr.Textbox(
39
+ lines=8,
40
+ label="Prompt",
41
+ value="""Analyze the manager's behavior according to the provided checklist, using only the content of the meeting transcript. Respond with brief but extreamly informative report.
42
+
43
+ # Output Format
44
+ Your response should be a brief (up to 10 sentences) analysis in Russian, structured in bullet points, clearly referencing both the transcript and checklist points as appropriate.
45
+ Use one of informative emojis at the beginnind of each bullet:
46
+ ✅ Criteria is met
47
+ ⚠️ Criteria is partially met
48
+ ❌ Criteria is not met"""
49
+ )
50
+
51
+ output_box = gr.Textbox(lines=10, label="GPT Reply")
52
  submit = gr.Button("Send")
53
 
54
  # Pass the *components*, not strings