Q4234 commited on
Commit
aaae658
·
1 Parent(s): 6c039cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ class Z(object):
9
  def init(self):
10
  pass
11
 
12
- def greet(self, txt0):
13
  prompt0 = txt0
14
 
15
  # for Wizard-Vicuna-13B
@@ -23,7 +23,7 @@ ASSISTANT:'''
23
 
24
  ### Response:'''
25
 
26
- response0 = llm(prompt00, max_new_tokens=198, temperature=0.5) # 0.3
27
 
28
  return f'{response0}'
29
 
@@ -46,5 +46,5 @@ def greet(arg0):
46
  global z
47
  return z.greet(arg0)
48
 
49
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
50
  iface.launch()
 
9
  def init(self):
10
  pass
11
 
12
+ def greet(self, txt0, paramTemp):
13
  prompt0 = txt0
14
 
15
  # for Wizard-Vicuna-13B
 
23
 
24
  ### Response:'''
25
 
26
+ response0 = llm(prompt00, max_new_tokens=198, temperature=paramTemp) # 0.5, 0.3
27
 
28
  return f'{response0}'
29
 
 
46
  global z
47
  return z.greet(arg0)
48
 
49
+ iface = gr.Interface(fn=greet, inputs=["text", gr.Slider(0.0, 1.0)], outputs="text")
50
  iface.launch()