Spaces:
Sleeping
Sleeping
ravithejads
commited on
Commit
•
346b8d4
1
Parent(s):
80aebc5
Update app.py
Browse files
app.py
CHANGED
@@ -42,12 +42,26 @@ callback = gr.CSVLogger()
|
|
42 |
with gr.Blocks() as demo:
|
43 |
gr.Markdown(
|
44 |
"""
|
45 |
-
|
46 |
-
|
47 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
with gr.Row():
|
49 |
with gr.Column():
|
50 |
-
text = gr.Textbox(lines = 5,
|
51 |
style_ = gr.Dropdown(["formal", "viral"],label="Click here to select style of the title/ description", value = "viral")
|
52 |
media = gr.Dropdown(["Twitter", "Linkedin", "Blog"],label="Click here to select media", value = "Twitter")
|
53 |
openaikey = gr.Textbox(lines = 1, label = "Enter OpenAI Key")
|
|
|
42 |
with gr.Blocks() as demo:
|
43 |
gr.Markdown(
|
44 |
"""
|
45 |
+
<h1><center><b>TitleDescGen</center></h1>
|
46 |
+
|
47 |
""")
|
48 |
+
gr.Markdown(
|
49 |
+
"""
|
50 |
+
This app generates a VIRAL/ FORMAL Title and Short description for your social media post. It uses OpenAI GPT3 in the backend, get your
|
51 |
+
<a href = "https://beta.openai.com/account/api-keys">Openai key here</a> \n
|
52 |
+
""")
|
53 |
+
gr.Markdown(
|
54 |
+
"""
|
55 |
+
**To use this space effectively**
|
56 |
+
<br>- Enter your text in the input box or select one of the examples at the bottom.
|
57 |
+
<br>- Use dropdown to select the style of title and description - Viral/ Formal
|
58 |
+
<br>- Use dropdown to select the social media - Twitter/ Linkedin/ Blog post
|
59 |
+
<br>- Enter your openai key </br>
|
60 |
+
"""
|
61 |
+
)
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
+
text = gr.Textbox(lines = 5, label = "Enter text")
|
65 |
style_ = gr.Dropdown(["formal", "viral"],label="Click here to select style of the title/ description", value = "viral")
|
66 |
media = gr.Dropdown(["Twitter", "Linkedin", "Blog"],label="Click here to select media", value = "Twitter")
|
67 |
openaikey = gr.Textbox(lines = 1, label = "Enter OpenAI Key")
|