Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,6 +67,20 @@ HTML_TEMPLATE = """
|
|
| 67 |
|
| 68 |
with gr.Blocks(theme=gr.themes.Glass(),css=".gradio-container {background: url('file=https://github.com/Delve-ERAV1/Conditional-Diffusion/assets/11761529/1ff9d2e1-798f-442a-a1e2-386fdd35010a')}") as interface:
|
| 69 |
gr.HTML(value=HTML_TEMPLATE, show_label=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
with gr.Row():
|
| 72 |
|
|
@@ -76,8 +90,8 @@ with gr.Blocks(theme=gr.themes.Glass(),css=".gradio-container {background: url('
|
|
| 76 |
)
|
| 77 |
|
| 78 |
temperature_dropdown = gr.Slider(0, 1, value=0.8, label="Temperature", info="Set the creativity level: Higher values produce more varied results, lower values generate more predictable text.")
|
| 79 |
-
top_k_dropdown = gr.Slider(
|
| 80 |
-
max_new_tokens = gr.Slider(
|
| 81 |
|
| 82 |
|
| 83 |
outputs = gr.Textbox(
|
|
|
|
| 67 |
|
| 68 |
with gr.Blocks(theme=gr.themes.Glass(),css=".gradio-container {background: url('file=https://github.com/Delve-ERAV1/Conditional-Diffusion/assets/11761529/1ff9d2e1-798f-442a-a1e2-386fdd35010a')}") as interface:
|
| 69 |
gr.HTML(value=HTML_TEMPLATE, show_label=False)
|
| 70 |
+
|
| 71 |
+
gr.Markdown("")
|
| 72 |
+
gr.Markdown("")
|
| 73 |
+
gr.Markdown("")
|
| 74 |
+
|
| 75 |
+
gr.Markdown("")
|
| 76 |
+
gr.Markdown("")
|
| 77 |
+
gr.Markdown("")
|
| 78 |
+
gr.Markdown("")
|
| 79 |
+
|
| 80 |
+
gr.Markdown("")
|
| 81 |
+
gr.Markdown("")
|
| 82 |
+
gr.Markdown("")
|
| 83 |
+
gr.Markdown("")
|
| 84 |
|
| 85 |
with gr.Row():
|
| 86 |
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
temperature_dropdown = gr.Slider(0, 1, value=0.8, label="Temperature", info="Set the creativity level: Higher values produce more varied results, lower values generate more predictable text.")
|
| 93 |
+
top_k_dropdown = gr.Slider(200, 300, value=200, label="Top K", info="Control the randomness: Limits the AI to consider only the top K most likely next words.")
|
| 94 |
+
max_new_tokens = gr.Slider(10, 100, value=50, label="Max Tokens", info="Choose the length: This determines the maximum number of words the AI will generate.")
|
| 95 |
|
| 96 |
|
| 97 |
outputs = gr.Textbox(
|