Data frame it
Browse files
app.py
CHANGED
@@ -92,11 +92,11 @@ NEVER USE HASHTAGS.
|
|
92 |
|
93 |
with gr.Blocks() as app:
|
94 |
gr.Markdown("### Social Media Post Generator")
|
95 |
-
api_key_input = gr.Textbox(label="
|
96 |
abstract_input = gr.Textbox(label="Article Abstract", placeholder="Enter the article abstract here")
|
97 |
generate_button = gr.Button("Generate Tweets")
|
98 |
-
|
99 |
|
100 |
-
generate_button.click(fn=write_tweets, inputs=[api_key_input, abstract_input], outputs=
|
101 |
|
102 |
app.launch()
|
|
|
92 |
|
93 |
with gr.Blocks() as app:
|
94 |
gr.Markdown("### Social Media Post Generator")
|
95 |
+
api_key_input = gr.Textbox(label="Password", placeholder="Enter the super secret password")
|
96 |
abstract_input = gr.Textbox(label="Article Abstract", placeholder="Enter the article abstract here")
|
97 |
generate_button = gr.Button("Generate Tweets")
|
98 |
+
output_dataframe = gr.Dataframe()
|
99 |
|
100 |
+
generate_button.click(fn=write_tweets, inputs=[api_key_input, abstract_input], outputs=output_dataframe)
|
101 |
|
102 |
app.launch()
|