abhishekt commited on
Commit
332520a
1 Parent(s): 0ea7149

CSV Output

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,16 +15,16 @@ def generate_product_name(prompt):
15
  stop=None,
16
  temperature=0.5,
17
  )
18
-
19
 
20
  message = completions.choices[0].text.strip()
21
- return message
 
22
 
23
  iface = gradio.Interface(
24
  fn=generate_product_name,
25
  inputs="text",
26
- outputs="csv",
27
  title="Product Name Generator",
28
  flagging=False
29
  )
30
- iface.launch()
 
15
  stop=None,
16
  temperature=0.5,
17
  )
 
18
 
19
  message = completions.choices[0].text.strip()
20
+ return message.replace("\n", ", ")
21
+
22
 
23
  iface = gradio.Interface(
24
  fn=generate_product_name,
25
  inputs="text",
26
+ outputs="text",
27
  title="Product Name Generator",
28
  flagging=False
29
  )
30
+ iface.launch()