Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ HTML_TEMPLATE = """
|
|
| 74 |
<div class="artifact large"></div>
|
| 75 |
<div class="artifact large"></div>
|
| 76 |
<!-- Content -->
|
| 77 |
-
<h1>
|
| 78 |
<p>Generate dialogue for given some initial prompt for context.</p>
|
| 79 |
<p>Model: Phi-2 (https://huggingface.co/microsoft/phi-2), Dataset: oasst1 (https://huggingface.co/datasets/OpenAssistant/oasst1) </p>
|
| 80 |
"""
|
|
@@ -100,16 +100,16 @@ with gr.Blocks(theme=gr.themes.Glass(),css=".gradio-container {background: url('
|
|
| 100 |
|
| 101 |
input_text = gr.Textbox(
|
| 102 |
label="Input Text",
|
| 103 |
-
value="Enter your prompt here: This
|
| 104 |
)
|
| 105 |
|
| 106 |
outputs = gr.Textbox(
|
| 107 |
-
label="
|
| 108 |
)
|
| 109 |
inputs = [input_text]
|
| 110 |
|
| 111 |
with gr.Column():
|
| 112 |
-
button = gr.Button("
|
| 113 |
button.click(generate_dialogue, inputs=inputs, outputs=outputs)
|
| 114 |
|
| 115 |
interface.launch()
|
|
|
|
| 74 |
<div class="artifact large"></div>
|
| 75 |
<div class="artifact large"></div>
|
| 76 |
<!-- Content -->
|
| 77 |
+
<h1>Fine tuned Phi-2 Model LLM</h1>
|
| 78 |
<p>Generate dialogue for given some initial prompt for context.</p>
|
| 79 |
<p>Model: Phi-2 (https://huggingface.co/microsoft/phi-2), Dataset: oasst1 (https://huggingface.co/datasets/OpenAssistant/oasst1) </p>
|
| 80 |
"""
|
|
|
|
| 100 |
|
| 101 |
input_text = gr.Textbox(
|
| 102 |
label="Input Text",
|
| 103 |
+
value="Enter your prompt here: This serves as the context for AI response."
|
| 104 |
)
|
| 105 |
|
| 106 |
outputs = gr.Textbox(
|
| 107 |
+
label="Response"
|
| 108 |
)
|
| 109 |
inputs = [input_text]
|
| 110 |
|
| 111 |
with gr.Column():
|
| 112 |
+
button = gr.Button("Submit")
|
| 113 |
button.click(generate_dialogue, inputs=inputs, outputs=outputs)
|
| 114 |
|
| 115 |
interface.launch()
|