emma-yay commited on
Commit
96ee4b1
·
verified ·
1 Parent(s): e80b897
Files changed (1) hide show
  1. app.py +23 -3
app.py CHANGED
@@ -36,22 +36,36 @@ If the user gets too personal, remind them that YOU ARE NOT A PROFESSIONAL; THEY
36
  response+=token
37
  yield response
38
  #return respond.choices[0].message.content.strip()
39
- class SidebarMenu(gr.HTML):
40
- menu_data = [
41
  {
 
42
  "type": "group",
 
43
  "label": "STEAM",
 
44
  "children": [
 
45
  {"id": "scholarships", "label": "Scholarships"},
 
46
  {"id": "internships", "label": "Internships"}
 
47
  ]
 
48
  },
 
49
  {
 
50
  "type": "item",
 
51
  "id": "tracker",
 
52
  "label": "Progress Tracker"
 
53
  }
 
54
  ]
 
55
  #QU0TE
56
  quotes = [
57
  "Something is better than nothing",
@@ -68,7 +82,13 @@ with gr.Blocks() as demo:
68
  *"{daily_quote}"*
69
  """)
70
  #THING
71
- sidebar = SidebarMenu(menu_data)
 
 
 
 
 
 
72
 
73
 
74
  gr.ChatInterface(respond)
 
36
  response+=token
37
  yield response
38
  #return respond.choices[0].message.content.strip()
39
+ menu_data = [
40
+
41
  {
42
+
43
  "type": "group",
44
+
45
  "label": "STEAM",
46
+
47
  "children": [
48
+
49
  {"id": "scholarships", "label": "Scholarships"},
50
+
51
  {"id": "internships", "label": "Internships"}
52
+
53
  ]
54
+
55
  },
56
+
57
  {
58
+
59
  "type": "item",
60
+
61
  "id": "tracker",
62
+
63
  "label": "Progress Tracker"
64
+
65
  }
66
+
67
  ]
68
+
69
  #QU0TE
70
  quotes = [
71
  "Something is better than nothing",
 
82
  *"{daily_quote}"*
83
  """)
84
  #THING
85
+ with gr.Row():
86
+
87
+ sidebar = SidebarMenu(menu_data)
88
+
89
+
90
+
91
+ with gr.Column():
92
 
93
 
94
  gr.ChatInterface(respond)