Gosula commited on
Commit
569d938
·
1 Parent(s): e725ae2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -21,6 +21,9 @@ def QLoRA_Chatgpt(prompt):
21
  result = pipe(f"<s>[INST] {prompt} [/INST]")
22
  return(result[0]['generated_text'])
23
  # return "Hello " + name + "!!"
24
-
25
- iface = gr.Interface(fn=QLoRA_Chatgpt, inputs=gr.Textbox("how can help you today", label='prompt'), outputs=gr.Textbox(label='Generated-output'))
 
 
 
26
  iface.launch(share=True)
 
21
  result = pipe(f"<s>[INST] {prompt} [/INST]")
22
  return(result[0]['generated_text'])
23
  # return "Hello " + name + "!!"
24
+ # Define Interface
25
+ description = 'An AI assistant that works on the Microsoft Phi 2 model, which has been trained specifically on the Open Assistant dataset using the QLora method, operates effectively.Link to the model: https://huggingface.co/microsoft/phi-2 Link to the dataset: https://huggingface.co/datasets/OpenAssistant/oasst1 '
26
+ title = 'AI Chat bot finetuned on Microsoft Phi 2 model using QLORA'
27
+ iface = gr.Interface(fn=QLoRA_Chatgpt, inputs=gr.Textbox("how can help you today", label='prompt'), outputs=gr.Textbox(label='Generated-output',scale = 2), title = title,
28
+ description = description)
29
  iface.launch(share=True)