nkanungo commited on
Commit
79d6234
·
1 Parent(s): bebb14b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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>CHAT with fine tuned Phi-2 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,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 text will set the context for the AI's response."
104
  )
105
 
106
  outputs = gr.Textbox(
107
- label="Answer"
108
  )
109
  inputs = [input_text]
110
 
111
  with gr.Column():
112
- button = gr.Button("Ask me")
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()