awinml commited on
Commit
4b7a4d8
β€’
1 Parent(s): 1d74b68
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -8,8 +8,8 @@ def generate_text(prompt):
8
  text = output['choices'][0]['text']
9
  return text
10
 
11
- input_text = gr.inputs.Textbox(lines= 10, label="Enter your input text")
12
- output_text = gr.outputs.Textbox(label="Output text")
13
 
14
  description = "Vicuna-7B-GPTQ-4bit-128g.GGML, max_tokens=468, temperature=0.1, top_p=0.5"
15
 
@@ -19,5 +19,6 @@ examples = [
19
  ["What is the square root of 64?", "The square root of 64 is 8."]
20
  ]
21
 
22
- gr.Interface(fn=generate_text, inputs=input_text, outputs=output_text, title="Vicuna Language Model", description=description, examples=examples).launch()
23
 
 
 
8
  text = output['choices'][0]['text']
9
  return text
10
 
11
+ input_text = gr.Textbox(lines= 10, label="Enter your input text")
12
+ output_text = gr.Textbox(label="Output text")
13
 
14
  description = "Vicuna-7B-GPTQ-4bit-128g.GGML, max_tokens=468, temperature=0.1, top_p=0.5"
15
 
 
19
  ["What is the square root of 64?", "The square root of 64 is 8."]
20
  ]
21
 
22
+ demo = gr.Interface(fn=generate_text, inputs=input_text, outputs=output_text, title="Vicuna Language Model", description=description, examples=examples).launch()
23
 
24
+ demo.launch()