enzostvs HF staff commited on
Commit
3bc81b1
1 Parent(s): 96c69bb

add none style and moods

Browse files
app/api/generate/title/route.ts CHANGED
@@ -18,7 +18,7 @@ export async function POST(
18
  parameters: {
19
  num_return_sequences: 1,
20
  return_full_text: false,
21
-
22
  }
23
  }),
24
  })
 
18
  parameters: {
19
  num_return_sequences: 1,
20
  return_full_text: false,
21
+ do_sample: false,
22
  }
23
  }),
24
  })
components/styles.tsx CHANGED
@@ -22,7 +22,7 @@ export const Styles = ({
22
  <div
23
  key={style.label}
24
  className={classNames(
25
- "w-full cursor-pointer transition-all duration-200 opacity-40 hover:opacity-100 rounded-xl bg-cover bg-center relative px-2 py-8 bg-gray-700 text-center font-bold text-white text-xl z-[1] overflow-hidden",
26
  {
27
  "!opacity-100 ring-[4px] ring-white/50":
28
  style.value === value,
 
22
  <div
23
  key={style.label}
24
  className={classNames(
25
+ "w-full cursor-pointer transition-all duration-200 opacity-40 hover:opacity-100 rounded-xl bg-cover bg-center relative px-2 py-8 bg-amber-900 text-center font-bold text-white text-xl z-[1] overflow-hidden",
26
  {
27
  "!opacity-100 ring-[4px] ring-white/50":
28
  style.value === value,
utils/index.ts CHANGED
@@ -6,6 +6,10 @@ export const LENGTHS = [
6
  ];
7
 
8
  export const STYLES = [{
 
 
 
 
9
  value: "hiphop",
10
  prompt: "Hip Hop and Rap track",
11
  label: "Hip Hop",
@@ -113,6 +117,11 @@ export const STYLES = [{
113
  }]
114
 
115
  export const MOODS = [{
 
 
 
 
 
116
  value: "happy",
117
  label: "Happy",
118
  prompt: "with an happy vibe",
 
6
  ];
7
 
8
  export const STYLES = [{
9
+ value: "none",
10
+ prompt: "",
11
+ label: "None",
12
+ },{
13
  value: "hiphop",
14
  prompt: "Hip Hop and Rap track",
15
  label: "Hip Hop",
 
117
  }]
118
 
119
  export const MOODS = [{
120
+ value: "none",
121
+ label: "None",
122
+ prompt: "",
123
+ emoji: ""
124
+ },{
125
  value: "happy",
126
  label: "Happy",
127
  prompt: "with an happy vibe",