Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,9 @@ def paraphrase(text):
|
|
37 |
input_text = gr.inputs.Textbox(lines=20, label='Input Text')
|
38 |
output_text = gr.outputs.Textbox(label='Output Text')
|
39 |
|
40 |
-
app = gr.Interface(paraphrase, inputs=input_text,
|
|
|
|
|
41 |
|
42 |
# Launch the user interface
|
43 |
app.launch()
|
|
|
37 |
input_text = gr.inputs.Textbox(lines=20, label='Input Text')
|
38 |
output_text = gr.outputs.Textbox(label='Output Text')
|
39 |
|
40 |
+
app = gr.Interface(paraphrase, inputs=input_text,css="""span.svelte-1l2rj76{color: #591fc9;font-size: 18px;
|
41 |
+
font-weight: 600;}.secondary.svelte-1ma3u5b{background: #591fc9; color: #fff;}.secondary.svelte-1ma3u5b:hover{background:#8a59e8;color:#000;}
|
42 |
+
.svelte-2xzfnp textarea {border: 1px solid #591fc9}.primary.svelte-1ma3u5b{background: #f8d605;color: #000;}.primary.svelte-1ma3u5b:hover{background: #ffe751;color: #591fc9;} """, outputs=output_text, title='GPT-2 Article Rewriter', description='Generate a paraphrased output while preserving the meaning of the input text using OpenAI GPT-2 model.')
|
43 |
|
44 |
# Launch the user interface
|
45 |
app.launch()
|