Spaces:
Sleeping
Sleeping
CSV Output
Browse files
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="
|
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()
|