Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
from humanize import paraphrase_text
|
3 |
|
4 |
with gr.Blocks() as demo:
|
5 |
gr.Markdown("# Polygraf Writer")
|
@@ -7,8 +7,6 @@ with gr.Blocks() as demo:
|
|
7 |
with gr.Column(scale=0.7):
|
8 |
gr.Markdown("## Enter a topic to write an article about:")
|
9 |
input_topic = gr.Textbox(label="Topic")
|
10 |
-
gr.Markdown("### Humanized article:")
|
11 |
-
output_label = gr.HTML(label="Output")
|
12 |
model_dropdown = gr.Radio(
|
13 |
choices=[
|
14 |
"Base Model",
|
@@ -22,6 +20,8 @@ with gr.Blocks() as demo:
|
|
22 |
label="Select Model Version",
|
23 |
)
|
24 |
process_button = gr.Button("Humanize Text")
|
|
|
|
|
25 |
|
26 |
with gr.Column(scale=0.3):
|
27 |
temperature_slider = gr.Slider(minimum=0.5, maximum=2.0, step=0.1, value=1.2, label="Temperature")
|
|
|
1 |
import gradio as gr
|
2 |
+
# from humanize import paraphrase_text
|
3 |
|
4 |
with gr.Blocks() as demo:
|
5 |
gr.Markdown("# Polygraf Writer")
|
|
|
7 |
with gr.Column(scale=0.7):
|
8 |
gr.Markdown("## Enter a topic to write an article about:")
|
9 |
input_topic = gr.Textbox(label="Topic")
|
|
|
|
|
10 |
model_dropdown = gr.Radio(
|
11 |
choices=[
|
12 |
"Base Model",
|
|
|
20 |
label="Select Model Version",
|
21 |
)
|
22 |
process_button = gr.Button("Humanize Text")
|
23 |
+
gr.Markdown("### Humanized article:")
|
24 |
+
output_label = gr.HTML(label="Output")
|
25 |
|
26 |
with gr.Column(scale=0.3):
|
27 |
temperature_slider = gr.Slider(minimum=0.5, maximum=2.0, step=0.1, value=1.2, label="Temperature")
|